OKLCH Color
Online Tools
Master the Future of Color
Stop guessing with HSL. Create perceptually uniform, accessible, and vibrant color palettes using the OKLCH color space. Optimized for modern displays and design systems.
Controls
#26a9f1
Current Color
Contrast (Assume Solid)
WCAG 2.1 Ratio
CSS Output
Tailwind CSS Integration
v3 Config
// tailwind.config.js
module.exports = {
theme: {
extend: {
colors: {
'brand-240': 'oklch(70% 0.15 240)',
}
}
}
} v4 Theme
@theme {
--color-brand-240: oklch(70% 0.15 240);
} Palettes
Auto-generated harmonies based on current OKLCH values.
Lightness Scale
Harmonies
Why use OKLCH?
Perceptual Uniformity
In older color spaces like HSL, "50% lightness" doesn't mean the same brightness for different colors. Yellow looks much brighter than blue.
OKLCH fixes this. Changing Hue doesn't change perceived brightness. This makes creating accessible, consistent color systems effortless.
- No "muddy" gradients
- Access to P3 Wide Gamut colors
- Reliable accessibility contrast
Notice the greyish transition area in HSL vs the smooth blend in OKLCH.
Go Beyond sRGB
Traditional hex codes (like #ff0000) are limited to the
sRGB color space, which covers only about 35% of visible colors.
Modern screens (Apple devices, OLEDs) support Display P3, which has ~50% more colors. OKLCH is the key to unlocking these vivid, neon-like colors on the web.
Frequently Asked Questions
Browser Support?
How to handle fallbacks?
color() function or simply define the property twice in CSS:color: #4a90e2; /* Fallback */
color: oklch(65% 0.15 240); /* Modern */