OKLCH colors
OKLCH colors are a new color space that is designed to be more perceptually uniform than LCH. This makes it easier to create color palettes that are more visually balanced and harmonious.
- L is perceived lightness (0%-100%).
- C is chroma, from gray to the most saturated color (0.00-0.37).
- H is the hue angle (0-360).
- a is opacity (0-1 or 0-100%).
Examples
- background: oklch(45% 0.26 264); /* blue */
- color: oklch(100% 0 0); /* white */
- color: oklch(0% 0 0 / 50%); /* black with 50% opacity */
Some links
grey:
primary:
accent:
danger:
warning:
success: