Skip to content
OKLCH format page

OKLCH Color Codes

Explore OKLCH values with a live color picker, format-aware previews, conversion rows, and contrast guidance.

Custom picker

Fine-tune your color

Drag the field, adjust hue and alpha, or paste any supported format.

110°
100%

Tip: you can paste formats like #3f7f2f, rgb(63, 127, 47), hsl(110, 45%, 35%), or oklch(0.7, 0.1, 220).

Current OKLCH value
Parsed from input
oklch(0, 0, 0)
Foreground preview
WCAG contrast checker and foreground picker
Best auto foreground
Best contrast with white
#ffffff
Auto-selects the strongest contrast against the current background.
Readable text preview
The quick brown fox jumps over the lazy dog.
Button preview
Contrast ratio
21.00
Excellent accessibility
Element AA AAA
Small text Pass Pass
Large text Pass
UI elements / graphics Pass N/A
AA for normal text is typically 4.5:1, AA for large text 3:1, AAA for normal text 7:1, and non-text UI elements typically 3:1.
About OKLCH

OKLCH

A modern perceptual color model.

OKLCH is especially useful in modern UI systems because it provides smoother perceptual transitions and more predictable color adjustments.

Best for modern design systems and CSS color workflows.

Convert to other formats

Jump directly to the same color in another notation.

Color Conversion

Same color in multiple code formats.

Export formats

Ready-to-copy snippets for developers, apps, frameworks, and design systems.

#000000
CSS variable
Tokens
JSON token
Tokens
Tailwind config
Tokens
SCSS variable
Tokens
JavaScript
Frontend
TypeScript
Frontend
Inline style
Frontend
CSS class
Frontend
Android XML
Mobile
SwiftUI
Mobile
Swift UIColor
Mobile
Kotlin
Mobile
Flutter
Mobile
React Native
Mobile
SVG fill
Graphics
SVG stroke
Graphics

Color Variations

tint / shade
Tint
Lightened version
#474747
Shade
Darkened version
#000000
Tone
Muted version
#1c1c1c
Monochrome
Single-hue family
#000000

Supported format references

Compare the supported formats and move between them without losing the same color context.