OKLCH Studio · color reference
CSS color cornsilk in OKLCH
Named CSS color cornsilk: oklch(0.977 0.037 95.4), HEX #FFF8DC. Contrast pairs (WCAG + APCA) and Fix links.
CSS “cornsilk” is very light — treat as a background or highlight, not body text on white.
Contrast pairs
WCAG 2.1 normal text + APCA Lc. Open a pair in the live Fix tool — informational only, not a legal audit.
- Text on white1.07:1 · Fail · Lc 0
#FFF8DC on #FFFFFF
Open in Contrast → - White on swatchnot a suggestion1.07:1 · Fail · Lc 0
#FFFFFF on #FFF8DC
Demo of a common fail — not a suggestion.
Open in Contrast → - Black on swatch19.71:1 · AAA · Lc 102
#000000 on #FFF8DC
Open in Contrast → - Fix → AA on white5.11:1 · AA · Lc 75
#746E56 on #FFFFFF
Open in Contrast → - Suggested text on swatch18.24:1 · AAA · Lc 101
#0D0D0D on #FFF8DC
Open in Contrast →
Dark surface pairing
Against #121212: cornsilk already passes AA on #121212.
Copy code
:root {
--cornsilk: oklch(0.977 0.037 95.4);
}Related
Keep exploring
Static reference — the live Fix tool uses the same WCAG math with Undo and share links.
Contrast Fix →OKLCH Studio homeTailwind indexCSS names index