The guess the color game is a five-round browser challenge that identifies sRGB swatches from typed RGB or HEX estimates.
Each round presents one swatch on a Canvas and asks for three numeric channels rather than a color name or slider setting. In the RGB Guessing Game, a qualifying estimate earns exactly 200 points, and five successful rounds produce exactly 1,000 points. The central pass rule has two parts: every channel error must be at most 12, and all three channel errors together must total at most 24.

What the Color Guessing Challenge Asks
This is a typed numeric recognition challenge, not a color-mixing task. It does not use adjustable red, green, and blue sliders, and its result is not based on Delta E color difference. Instead, you examine one visible target and submit a three-channel estimate in the format you select.
The five rounds are fixed. An accepted estimate opens the next fixed swatch, while a failed round may give you another attempt or end the run. The score is therefore determined by both numerical accuracy and how many distinct wrong colors you submit.
How to Make an Accepted Guess
Use this workflow for every swatch in the RGB Guessing Game:
- Study the current Canvas swatch. Treat the displayed color as the reference. Its exact RGB tuple is not included in the normal text or feedback.
- Choose RGB or HEX mode. RGB mode requires three base-10 whole numbers from 0 through 255. HEX mode accepts #RGB or #RRGGBB, including the leading hash.
- Enter and submit the estimate. Use the submit action or press Enter from the form. A malformed entry does not count as a wrong color or change the round’s score.
- Read all feedback values. The game reports the three absolute channel errors, the largest channel error, and the total error. The guess passes only when the largest error is at most 12 and the total is at most 24.
- Advance or use the repair chance. A passing guess awards 200 points and opens the next round. The first distinct wrong normalized color leaves one repair attempt; a second different wrong color locks the round until you choose Restart.
RGB and HEX Inputs Compared
RGB mode follows the channel range described in MDN’s RGB value reference, although the game asks for three plain integers rather than a complete rgb() function. HEX mode uses the three- and six-digit forms documented in MDN’s hex-color reference.
| Input mode | What to enter | Conversion and limits |
|---|---|---|
| Decimal RGB | Three base-10 whole numbers | Each channel must be from 0 through 255. |
| Short CSS HEX | #RGB | The leading hash is required, and each digit is duplicated: #ABC expands to #AABBCC. |
| Long CSS HEX | #RRGGBB | The leading hash is required, with two hexadecimal digits for each channel. |
HEX letters are case-insensitive. Both input modes are converted to the same red, green, and blue integer tuple before scoring and before wrong attempts are deduplicated. Consequently, entering an RGB value and later entering its equivalent HEX spelling does not create a second distinct miss.
Passing the Two Error Checks
Each channel error is an absolute difference. If eR, eG, and eB are the red, green, and blue errors, an estimate passes only when max(eR, eG, eB) ≤ 12 and eR + eG + eB ≤ 24. Both limits are inclusive, and both conditions must pass.
| Check | Pass condition | What it controls |
|---|---|---|
| Largest channel error | At most 12 | One large channel mistake cannot be hidden by two exact channels. |
| Total absolute error | At most 24 | The combined mismatch across all three channels remains within the stated limit. |
| Overall decision | Both checks pass | The estimate earns the 200-point award and opens the next fixed round. |
For one hypothetical example, suppose the target RGB is (120, 80, 40) and the guess is (108, 86, 46). The errors are |120 − 108| = 12, |80 − 86| = 6, and |40 − 46| = 6. The largest error is 12 and the total is 12 + 6 + 6 = 24, so the estimate passes because both limits are inclusive.
The feedback values are magnitudes, not directional corrections. They show how far each channel is from the target but do not reveal whether your red, green, or blue estimate is too high or too low. The exact target tuple also remains absent from normal play feedback.
Scoring, Repair Attempts, and Round Locks
A successful swatch awards exactly 200 points and opens the next fixed round. Identifying all five swatches therefore produces the exact 1,000-point finish. An estimate that misses either error condition does not receive the round’s 200-point award.
Wrong attempts are tracked by normalized color. The first distinct wrong color leaves one repair attempt. Submitting a second different wrong color locks the round until Restart. Repeating the same normalized color does not consume that second chance, even when the repeat uses a different format—for example, an RGB entry followed by its equivalent HEX spelling.
Invalid syntax, missing channels, fractions, negative values, and values above 255 do not alter the business state. Actions made in a locked or completed state also leave the score unchanged. When the game locks or finishes, focus moves to a terminal status message; Restart is available to begin again after a lock.
Keyboard, Touch, and Browser Controls
Press Tab to move among the native format buttons, input fields, and submit action. Pressing Enter from the form checks the estimate. Each interactive element has a mobile-friendly touch height, and the layout changes to a single column on a narrow screen.
While the shared Boss overlay is visible, input edits, mode changes, submission, and Restart all return without changing local or scored state. Closing that overlay restores normal interaction.
Gameplay and best-score handling remain in the browser. The game does not upload guesses and does not require an account, model call, or remote color service. The supported workflow therefore stays local to the current page rather than sending each estimate to a separate scoring service.
What Canvas Protection Does and Does Not Do
The active swatch is drawn into a Canvas so its exact answer is not published through visible page text, the ARIA label, data attributes, or inline style. Future round values are also absent from the current DOM. Together, these measures prevent accidental answer disclosure during ordinary play.
They do not make the client-side game tamper-resistant. A determined user can sample displayed pixels or inspect downloaded code. The honest limitation is that Canvas protects against casual disclosure rather than deliberate extraction; scoring still follows the stated numeric thresholds and round rules.
Turning Feedback Into Better Estimates
Use the error report as a set of magnitudes, then refine the estimate in the format you can read most comfortably.
- Check the syntax first. Confirm that RGB contains three whole numbers from 0 through 255, or that HEX includes its leading hash and uses a supported length.
- Start with the largest channel error. If one channel is above 12, bring it within the individual limit before checking whether the combined total also passes.
- Do not stop at the largest-error check. Every channel may be within 12 while their total remains above 24, so the combined result still needs attention.
- Use the swatch to choose the direction. Because the report gives absolute differences rather than signed corrections, compare the current estimate with the visible color to decide which channel needs adjustment.
- Remember cross-format deduplication. Repeating an equivalent answer in another notation does not create a new color attempt or spend the second-distinct-miss lock.
For additional practice estimating displayed swatches with the same numeric input model, see Guess RGB From Color Swatches: A Practical Guide.