1. Parse and convert
Both inputs are read as six-digit sRGB hex values — the same format every color picker produces. Each channel is converted from the display curve to linear light, then mapped from sRGB into the CIE Lab color space, which arranges colors by lightness and two opponent axes the way human vision actually differs them. The conversion follows the W3C CSS Color Module Level 4 definitions.
2. Measure the distance
The two Lab colors are compared with CIEDE2000 (ΔE₀₀), the color-difference formula published by the International Commission on Illumination in its Colorimetry Part 6 technical report. It corrects the known quirks of raw Lab distance — near-neutral colors and blue regions — so the number tracks what your eyes would report. Standard weights (kL = kC = kH = 1) are used.
3. Label the practice band
The tool converts the ΔE number into a plain-language band: under 2 “Very close”, 2–5 “Close”, 5–15 “Noticeably different”, and over 15 “Far apart”. These bands are this site's editorial labels for practice feedback — the game's own thresholds for tower layers are not published, so the tool never claims a layer count.
4. Explain the direction
Alongside the distance, the tool shows the raw red, green, and blue channel differences between your guess and the target, with signed values and one-line advice like “your guess needs more red, less green”. That turns a bare number into a correction you can apply in the next round: fix the largest channel first.