RGBA Color Guessing Game
Test your color perception skills by guessing RGBA values. Match the target color using sliders, score based on accuracy, and track your streak.
About
Human color perception operates within a narrow band of the electromagnetic spectrum (~380nm to 700nm). Distinguishing between two colors separated by fewer than 3 - 5 digital units (out of 256 per channel) approaches the threshold of most displays and most eyes. This game exploits that limit. You are shown a target color defined by four channels: R (red), G (green), B (blue), and A (alpha/opacity). Your task is to reproduce that color using sliders. Scoring uses weighted Euclidean distance in RGBA space. A perfect match scores 100. A guess at maximum distance scores 0. Typical untrained players average 55 - 70 on medium difficulty. Professionals in print production or UI design often exceed 85.
The alpha channel is the hardest to judge. Without a reference checkerboard pattern, transparency differences below 0.1 are nearly invisible on uniform backgrounds. This tool renders both target and guess over a standard checkerboard so alpha shifts become detectable. Note: results depend on your monitor calibration. An uncalibrated display can shift perceived color by 10 - 20 units per channel, which limits achievable accuracy regardless of skill.
Formulas
Accuracy is computed as the normalized Euclidean distance between the target color vector and the guessed color vector in four-dimensional RGBA space.
Where Rt, Gt, Bt, At are the target channel values, and Rg, Gg, Bg, Ag are the guessed values. Alpha is scaled to 0 - 255 to equalize its weight with RGB channels. A score of 100 means a pixel-perfect match. A score below 50 indicates the guess deviated by more than half the color space diagonal.
Streak bonus applies when consecutive round scores exceed 85:
Reference Data
| Difficulty | Alpha Range | Avg. Score (Untrained) | Avg. Score (Trained) | Max Distance | Rounds |
|---|---|---|---|---|---|
| Easy | A = 1.0 (fixed) | 65 - 75 | 88 - 95 | 441.7 | 10 |
| Medium | 0.4 ≤ A ≤ 1.0 | 50 - 65 | 80 - 90 | 469.6 | 10 |
| Hard | 0.0 ≤ A ≤ 1.0 | 40 - 55 | 72 - 85 | 510.0 | 10 |
| Color Channel Reference | |||||
| Channel | Range | Bit Depth | Human JND | Weight in Score | Notes |
| Red (R) | 0 - 255 | 8-bit | ~3 - 5 units | 1.0 | Most sensitive in warm tones |
| Green (G) | 0 - 255 | 8-bit | ~2 - 4 units | 1.0 | Human eye most sensitive here |
| Blue (B) | 0 - 255 | 8-bit | ~4 - 7 units | 1.0 | Hardest to perceive shifts |
| Alpha (A) | 0.00 - 1.00 | Continuous | ~0.05 - 0.10 | 1.0 (×255) | Requires checkerboard to detect |
| Notable Color Pairs (Hard to Distinguish) | |||||
| Pair | Color A | Color B | Distance | Difficulty | Why |
| Navy vs. Dark Blue | rgba(0,0,128,1) | rgba(0,0,139,1) | 11.0 | Extreme | Low luminance blue range |
| Salmon vs. Coral | rgba(250,128,114,1) | rgba(255,127,80,1) | 34.5 | Hard | Similar warm hue, slight orange shift |
| Grey 50% vs. 55% | rgba(128,128,128,1) | rgba(140,140,140,1) | 20.8 | Hard | Neutral greys lack hue cues |