Feature Library

See it as they do

0.42 CPU ms
A still of the See it as they do demo
Still
The live demo starts when it’s in view.Drag the split · pick a vision above · hover a ▲ pair to light its colours · Suggest a fix, then Apply

A colour-vision lens for any live view, and a palette repair.

What it costs a frame

0.42 ms
GPU
not used
CPU, median
0.42 ms
CPU, 95th pct
0.63 ms
Draw calls
0
Weight
Light

Measured 13 November 2026 on RTX 4060 Laptop, 13th Gen Intel(R) Core(TM) i9-13900H, Chrome 157, 1920×1080 at 1×. 600 frames × 3 rounds, median kept (rounds ranged CPU 0.40–0.43 ms). What ran: Measured with the split sweeping across the view every frame (the veil’s backdrop filter redrawn, a colour-matrix over about 600 × 440 px) and the whole palette check (ten colours, four visions, CIEDE2000) run every frame. Live, the check runs only when a colour or a control changes. Phones: tiers are being measured next.

On every machine it was measured on
MachineGPU msCPU msCPU p95
RTX 4060 Laptop · 13th Gen Intel(R) Core(TM) i9-13900Hreference · measuring toolnot timed0.420.63
apple · Apple A19 Proin a browser tab · 16 November 2026not timed0.380.54
Intel Arc 140V (Xe2-LPG) · Intel Core Ultra 7 258Vin a browser tab · 15 November 2026not timed0.610.84

Bars against one 16.7 ms frame. A browser-tab run is timed in a visible tab without the tool’s scripted input, so read it as close, not exact.

What it needs

Renders with
DOM and CSSPlain DOM and CSS: every current browser.
Your browser
Runs hereNo WebGPU needed
Depends on
NothingNo other packages

What it’s for

  1. Reviewing a screen for colour blindness while you build it
  2. Repairing status and chart colours with the least change
  3. A design-system palette check with suggested fixes
  4. Auditing the colours a page actually draws with
  5. Showing a team what a colour-blind user sees
  6. Before and after for an accessibility review

Pitfalls, in brief

  1. The split is a veil with backdrop-filter: url(#filter), which only Chromium draws (Chrome, Edge).
  2. A filter or opacity on an ancestor of the veil becomes its backdrop root: the veil then sees only what is inside that ancestor.
  3. Simulation is a model: real colour vision varies from person to person, and anomalous trichromacy (the commoner, milder kind) is a blend toward the full matrix here, not measured.
  4. The repair moves colours you named as a group (status, chart lines, tags).
  5. Status colours need 20 (apart at a glance); series that sit side by side 10.
3 more in brief
  1. A repaired fill can lose contrast with text drawn on it: check text contrast (WCAG 4.5:1) again after applying a repair.
  2. Colour alone never carries meaning, whatever the palette: keep a second channel (shapes, labels, patterns).
  3. coloursInUse reads computed styles of every visible element: run it on demand (a review button, a test), not every frame.
8 pitfalls in full, the hook-up guide, the module source and its tests come with the part.

Where it comes from

From SpaciousPro. Fully custom code.

Machado, Oliveira and Fernandes, “A Physiologically-based Model for Simulation of Color Vision Deficiency” (IEEE TVCG, 2009): The protan, deutan and tritan matrices at full severity, applied in linear RGB; lower severities blend toward them (an approximation of the paper’s tabulated steps).

CIE 142-2001, CIEDE2000; Sharma, Wu and Dalal, “The CIEDE2000 color-difference formula: implementation notes” (2005): deltaE00 written from the standard and the implementation notes; tested against rows of their test data to four decimals.

Björn Ottosson, “A perceptual color space for image processing” (OKLab, 2020): The OKLab matrices in oklch.ts, as published; the chroma-lowering gamut map is a plain bisection, not his gamut-clipping method.

W3C WCAG 2.2, 1.4.1 Use of Color: The rule the demo’s “shapes as well as colour” switch serves. Guidance, no code.

WAI-ARIA Authoring Practices Guide (W3C): the Slider pattern for the lens’s split handle, and the Radio Group pattern for the demo’s vision switch

accessibilitycolour blindnesscolour vision deficiencysimulationCIEDE2000OKLCHpalettedesign tokensbackdrop-filterSVG filtersplit viewWCAG 1.4.1keyboarddomno dependencies

Near it in the frame