Color appearance comparison with a color-vision model
Compare color coding in web design and similar uses with a color-vision model's output.
This is a mathematical appearance comparison based on published matrices. It cannot reproduce an individual's vision or be used for color-vision testing, diagnosis or accessibility compliance decisions.
Results
—
- Maximum color difference ΔE76
- —
- Colors compared
- —colors
- Out-of-gamut rows
- —rows
Results update automatically when the required values are entered.
Method, applicability and sources
Calculation method
Encoded sRGB input is converted to linear RGB using the IEC 61966-2-1 transfer function; linear-sRGB input bypasses this conversion. Apply the Machado matrix M (3×3) for the selected vision type and step as raw=M×RGBlinear. Raw values retain negatives and values above 1 outside the gamut. Only display RGB is clipped componentwise to 0–1 and re-encoded to sRGB. Convert displayed original and transformed sRGB via D65/2° XYZ→CIELAB and calculate ΔE76=√((ΔL*)²+(Δa*)²+(Δb*)²). The mean is Σ(weight×ΔE76)÷Σweight, with blank weights set to 1. HEX uses each display component multiplied by 255 and rounded to the nearest integer.
Worked example (hypothetical values)
Reference example: transform encoded-sRGB red (R=1,G=0,B=0) using the protan type at step 10 to obtain raw linear RGB=(0.152286,0.114503,-0.003882). Negative B is set to 0 only for display. At step 0 the color is unchanged.
Applicability and limitations
Comparison of screen colors and palettes with known sRGB coordinates. This does not reproduce or diagnose an individual's color vision. It does not certify WCAG compliance, perform daltonization correction, convert image files or reproduce tritanopia.
Method and sources
Method: Machado (2009) / 2010 tabulated matrices, steps 0–10; sRGB D65. Data recorded: 2026-11-14.