Launch your MVP in 4 weeks

    Click to learn more

    What is OKLCH?

    Learn what OKLCH is in CSS, what it stands for, specs and why use it.

    Quick answer: What is OKLCH color?

    OKLCH is a modern color format that stands for OK Lightness, Chroma, and Hue. OKLCH color provides better perceptual uniformity than RGB or HSL, making it ideal for creating accessible, consistent color palettes in CSS and design tools. It's part of the CSS Color Level 4 specification and offers superior color manipulation capabilities for modern web development.

    Understanding OKLCH

    What does OKLCH stand for? OKLCH stands for OK Lightness, Chroma, and Hue. If you're wondering "what is OKLCH" or "OKLCH what is it", it's a cylindrical representation of the Oklab color space designed to be perceptually uniform - meaning that numerical changes in color values correspond to similar visual changes that humans actually perceive.

    OKLCH color format represents a significant advancement over traditional color spaces like RGB, HSL, and HEX, making it easier for designers and developers to work with consistent, accessible colors in modern web design.

    L - Lightness

    From 0% (black) to 100% (white)

    C - Chroma

    Color intensity/saturation

    H - Hue

    Color wheel position (0-360°)

    Why OKLCH? Why use OKLCH color format?

    Perceptual Uniformity

    Changes in OKLCH values correspond to how humans actually perceive color differences, making it easier to create harmonious color palettes.

    Better Accessibility

    OKLCH makes it easier to ensure sufficient contrast ratios and create accessible color combinations for users with different visual needs.

    Predictable Results

    Color manipulations like lightening, darkening, or adjusting saturation produce more predictable and visually pleasing results.

    Future-Ready

    OKLCH is part of the CSS Color Level 4 specification and is increasingly supported by modern browsers and design tools.

    Can I use OKLCH? OKLCH browser support

    What is OKLCH in CSS? Usage Examples

    OKLCH in CSS provides a modern way to define colors with better perceptual accuracy. Here's how to use OKLCH color format in your stylesheets:

    /* Modern OKLCH CSS syntax */
    .my-element {
    color: oklch(65% 0.15 180);
    background: oklch(85% 0.08 120);
    }

    Can I Use OKLCH? Current Browser Support (June 2025)

    Good news! OKLCH browser support is excellent in modern browsers. You can confidently use OKLCH in production with appropriate fallbacks.

    Desktop Browsers

    • Chrome
      111+
    • Edge
      111+
    • Safari
      15.4+ (March 2022)
    • Firefox
      113+
    • Opera
      97+
    • Internet Explorer
      Not supported

    Mobile Browsers

    • Chrome Android
      136+
    • Safari iOS
      15.4+
    • Samsung Internet
      22+
    • Firefox Android
      137+
    • Android Browser
      136+

    Coverage: OKLCH is supported by approximately 85%+ of global users as of June 2025, making it safe to implement with fallbacks for legacy browsers.

    Comprehensive browser support data

    Detailed version support for OKLCH across all major browsers:

    Chrome: 111-139+ ✓
    Edge: 111-139+ ✓
    Safari: 15.4-18.5+ ✓
    Firefox: 113-141+ ✓
    Opera: 97-117+ ✓
    IE: Not supported ✗

    What is OKLCH in Tailwind CSS?

    TailwindCSS v4 started using OKLCH color format for themes instead of previous HSL color format. Now the colors you see in your theme variables in index.css are in OKLCH format.

    /* OKLCH with Tailwind arbitrary values */
    text-[oklch(65%_0.15_180)]
    bg-[oklch(85%_0.08_120)]
    border-[oklch(70%_0.12_240)]

    Fallback strategy for OKLCH browser support

    Always provide fallbacks for older browsers that don't support OKLCH:

    /* Fallback first, then OKLCH */
    color:
    hsl(180, 50%, 65%)
    color:
    oklch(65% 0.15 180)

    Getting Started

    Quick tips for using OKLCH color format

    Now that you understand what OKLCH is and why use OKLCH over traditional color formats, here are practical tips for implementing OKLCH in your projects:

    1

    Start with Lightness

    Adjust the L value first to get the right brightness level

    2

    Control Chroma for Intensity

    Higher chroma values create more vibrant colors

    3

    Use Hue for Color Relationships

    Complementary colors are 180° apart on the hue wheel