Internal reference

Colour System

A single-hue OKLCH palette with perceptually uniform lightness steps, deliberate chroma scaling by role, and (in light mode) a hue that rotates across the lightness axis. Hex values serve as fallbacks for browsers without oklch() support (~5% of users). On capable displays, the the most saturated tokens reach into the Display P3 gamut.

Live tokens

Reflects your current OS colour preference.

--bg
--bg-surface
--bg-elevated
--border-subtle
--border
--text-mid
--text
--accent
--opposite

Both modes

Static — always visible regardless of OS preference.

Dark

--bg oklch(0.185 0.008 145) #111411 Page background
--bg-surface oklch(0.22 0.010 145) #171b17 Card / panel surface
--bg-elevated oklch(0.26 0.012 145) #1e231e Raised element
--border-subtle oklch(0.32 0.015 145) #2a312a Divider lines
--border oklch(0.40 0.020 145) #3f493f Interactive borders
--text-mid oklch(0.76 0.020 145) #a3aea3 Secondary text
--text oklch(0.94 0.006 145) #ebefeb Primary text
--accent oklch(0.80 0.19 150) #3ddc84 Interactive accent
--opposite oklch(0.63 0.220 27) #d5150b Contrast / highlight

Light

--bg oklch(0.87 0.075 158) #afe4c8 Page background
--bg-surface oklch(0.82 0.095 155) #95dfb8 Card / panel surface
--bg-elevated oklch(0.77 0.110 152) #7fd7a8 Raised element
--border-subtle oklch(0.72 0.100 150) #6fc899 Divider lines
--border oklch(0.63 0.115 147) #4ab07a Interactive borders
--text-mid oklch(0.38 0.075 144) #2f513f Secondary text
--text oklch(0.12 0.010 147) #020303 Primary text
--accent oklch(0.42 0.210 145) #1a7a42 Interactive accent
--opposite oklch(0.88 0.070 27) #fcc8c5 Contrast / highlight

How it's composed

1

Hue rotates across the lightness axis

Light mode: the darkest tokens sit at H 144 (more lime, warmer) and the page background drifts toward H 158 (more teal, cooler). The eye reads this as atmospheric depth — like the colour shift between forest floor and canopy — rather than a mechanical single-hue ramp. Dark mode holds one hue (H 145–150) at very low chroma, so it reads as near-neutral with a trace of green.

144°
147°
150°
152°
155°
158°
2

Chroma scales by role

In dark mode, backgrounds are almost neutral (C 0.008–0.012), borders a little greener (C 0.015–0.02), and the accent sits at C 0.19. Light mode runs richer throughout (backgrounds C 0.075–0.11, borders C 0.10–0.115, accent C 0.21). In both, this means focal hierarchy is intrinsic to the palette — more saturated elements feel more important without any additional visual treatment. The accent is visually "louder" not because it's bigger or bolder, but because it's more chromatic.

bg C 0.008
surface C 0.010
elevated C 0.012
border-subtle C 0.015
border C 0.02
accent C 0.19
3

Accent and opposite use the full P3 gamut

The light-mode accent, oklch(0.42 0.210 145), and the dark-mode opposite red, oklch(0.63 0.220 27), sit at peak chroma, at or beyond the sRGB boundary. On a Display P3 screen (any Apple device since 2016, most modern monitors) these render as genuinely fluorescent colours impossible to reproduce in print or on older screens. No separate @supports block needed — the browser gamut-maps automatically, clipping to sRGB on incapable displays.

sRGB fallback
#1a7a42
OKLCH / P3
oklch(0.42 0.210 145)
sRGB fallback
#d5150b
OKLCH / P3
oklch(0.63 0.220 27)
4

Browser cascade

Three layers, each overriding the previous when supported:

Layer 1 :root { --bg: #111411 } Hex — all browsers, ~5% of users stop here
↓
Layer 2 @supports (color: oklch(0 0 0)) { --bg: oklch(0.185 0.008 145) } OKLCH — Chrome 111+, Safari 15.4+, Firefox 113+ (~95%)
↓
Implicit oklch(0.42 0.210 145) → Display P3 gamut Browser gamut-maps OKLCH to widest available gamut automatically