Color-vision simulation helps reveal palette risks, especially when color is the only cue. Hue Codex treats it as a screening tool, not a substitute for real user testing.
Hue Codex applies fixed RGB transform matrices for protanopia, deuteranopia, tritanopia, and achromatopsia, then compares simulated swatches with Delta E style distance and WCAG text checks.
The simulator approximates full-condition views with fixed matrices; it is not a severity slider or clinical model.
Pair risks are ranked by simulated Delta E distance, with closer pairs flagged for review.
Best text recommendations are recalculated on simulated colors.
Simulation can reveal likely risks, but real accessibility still needs contrast, labels, icons, shape, position, and user context.
Standards status
These badges identify which parts of this methodology are standards-backed, draft-track, Hue Codex-specific, approximate, or dependent on browser behavior.
ApproximationHue Codex heuristicStandard
ApproximationModel or estimate with known limits, including CMYK, color-vision simulation, image palette extraction, or CSS duotone output.
Hue Codex heuristicHue Codex ranking, role hints, bands, labels, or workflow guidance rather than an external standard.
StandardStable standard or standards-backed behavior used as authority, such as WCAG 2.2 and broadly implemented CSS Color 4 behavior.
Formulas, choices, heuristics, and limits
This separates standards-based formulas from Hue Codex implementation decisions, product heuristics, and known limitations for this methodology.
Standards-based formulas
Formula, threshold, syntax, or data behavior taken from a cited standard or standards-backed source.
WCAG contrast math is reused for simulated text and surface checks.
The cited WCAG guidance anchors the need for contrast and non-color cues.
Implementation choices
How Hue Codex chooses to parse, normalize, round, export, or sequence calculations.
Hue Codex applies fixed RGB transform matrices for protanopia, deuteranopia, tritanopia, and achromatopsia.
Simulated values are clamped back to displayable sRGB before downstream checks.
Duplicate colors are removed before pair risk review.
Hue Codex heuristics
Product rankings, bands, labels, suggestions, or role hints that are useful guidance but not external standards.
Collapse risk labels and hue-only risk rankings are Hue Codex screening heuristics.
Delta E cutoffs for pair risk are review bands, not clinical or accessibility standards.
Best text recommendations on simulated colors are guidance for further review.
Known limitations
Caveats, edge cases, browser dependencies, approximations, or contexts the method does not prove.
Simulation is approximate and does not represent every person or severity level.
The model does not account for display calibration, viewing distance, lighting, eye conditions, or adaptation.
Passing simulation checks does not prove accessibility; meaning still needs labels, shape, position, and context.
Simulation modes
ApproximationBrowser-dependent
Hue Codex includes protanopia, deuteranopia, tritanopia, and achromatopsia modes. The selected matrix is applied to each sRGB color and the result is clamped back to displayable sRGB.
Duplicate HEX values are removed before pair comparison so the review focuses on distinct palette entries.
Risk ranking
Hue Codex heuristicApproximation
For each pair, Hue Codex calculates original Delta E 76 and simulated Delta E 76. A pair is flagged as likely collapse below 4, needs non-color cues below 8, review in context below 14, and distinct signal at higher distances.
Hue-only risks are pairs that begin visually separated but become close under the selected simulation. These are especially important for charts, status indicators, and selected states.
Text and contrast checks
StandardHue Codex heuristic
Each simulated swatch receives a best black/white/text-candidate recommendation and WCAG contrast score. This catches cases where a simulated color remains distinct but becomes a poor surface for text.
Limits
ApproximationBrowser-dependent
The model is approximate and does not represent every person with color-vision differences.
The tool does not model display calibration, viewing distance, lighting, eye conditions, or individual adaptation.
Passing simulation checks does not prove accessibility.
Critical information should never depend on hue alone.
Validation checks
Hue Codex heuristicApproximation
Simulation QA checks.
Check
Expected behavior
Two identical colors
Pair ranks as collapse risk
Red/green-heavy pairs in red-green modes
Review or collapse risk is likely
Achromatopsia mode
Output depends primarily on lightness
Export caveat
Reports state that simulation is approximate
Simulation pseudocode
ApproximationHue Codex heuristicStandard
Hue Codex applies fixed matrices directly to encoded 8-bit sRGB channels, then rounds and clamps back to displayable sRGB. It does not linearize before these matrix transforms.
These vectors validate the fixed RGB transform matrices and final sRGB clamping used by the simulator.
Color-vision simulation matrix vectors.
Input
Expected output
Notes
Protanopia matrix applied to #FF0000
#918E00
Matrix result rounded and clamped to sRGB
Deuteranopia matrix applied to #FF0000
#9FB300
Matrix result rounded and clamped to sRGB
Tritanopia matrix applied to #0000FF
#009186
Matrix result rounded and clamped to sRGB
Achromatopsia matrix applied to #4169E1
#6B6B6B
Equalized grayscale-style RGB result
Sources and standards
These references anchor the public standards and formats used by Hue Codex. Status badges distinguish stable standards, drafts, Hue Codex heuristics, approximations, and browser-dependent behavior.