Oklab UI Palette Generator
Key #B98A46
Accent #B98A46

The Oklab Colour Space

This tool uses the Oklab colour space to create colour scales that change more evenly to the eye than traditional RGB or HSL adjustments. With this tool you can shape the Key Colour while keeping its generated shades and related colours visually balanced. This provides a more consistent starting point for building a UI colour scheme. Cycle through the 7 accents via the top bar button and every element within the page will respond.

Key colour & system controls

The Key Colour is the starting point for the entire colour system. Change the HEX or adjust the lightness, chroma and hue sliders to define it, and the 6 connected hues below all respond. The neutral background, foreground, text balance and even the font can be tweaked to dial in UI characteristics.

Key Colour
#B98A46
HEX
Lightness (L)
Chroma (C)
Hue (H)
Live accent family

Every hue rotated from the key colour — click one to make it the active accent.

Background, foreground & font
Background
Foreground / text
Neutral tint
Background
Text

Generated palette

The Key Colour generates six related hues plus a neutral Fog. Each colour is presented as a seven-step scale, progressing from darker shades through the anchor colour to lighter tints. The colours are spaced using Oklab coordinates to keep each progression visually balanced and consistent.

Export your palette

Want to use these colours elsewhere? The Export button in the top bar bundles the hex codes for whichever accent is currently selected plus its seven-step scale, background, panel and text colours that you've tuned in. Pick a format, then copy and paste the hex codes straight into your project's CSS, design tool, or style guide. Building a syntax theme usually needs more than one accent — use the Full palette tab for all six hues plus the neutral, with a suggested role mapping for keywords.

CSS components

A practical check of the active accent across common UI roles. Compare buttons, fields, borders, badges and text to make sure the colour hierarchy and contrast still work in both light and dark modes.

Primary button
Secondary button
Link
This Page is Chockers
Badge / tag
Little Snag
Callout
Heads up dingus. This banana is not to scale ☾
The Great Divider

Blockquote
"I don't know any Quokkas, he quoted."
Input + focus ring
Switch
Never Ending Progress
Inline code
--She'll be right
Hover surface Magic Hover Button

Yeah, nah thats it.