Tools / Color Converter / RGB → OKLCH

RGB to OKLCH Converter.

RGB to OKLCH lifts a standard 0-255 color into the perceptual OKLCH space. It's the conversion behind modern, accessible design tokens: store hue and chroma once, then generate a whole tint ramp by stepping lightness — and the steps actually look even.

OKLCH —
All formats

    The RGB → OKLCH formula

    Normalize and linearize RGB, apply the OKLab matrix, take cube roots, then convert the resulting (L, a, b) to polar (L, C, H).

    Worked example

    Convert rgb(154, 42, 42):

    1. Linearize → OKLab
    2. L ≈ 0.46, a ≈ 0.13, b ≈ 0.06
    3. C = √(a²+b²) ≈ 0.15, H = atan2(b,a) ≈ 25°
    4. Result: oklch(46% 0.15 25)

    JavaScript

    // see rgbToOklch in colorConvert.ts (Ottosson OKLab matrices)
    rgbToOklch({r:154,g:42,b:42}); // {l:0.46, c:0.15, h:25}

    FAQ

    What's a typical chroma value?

    OKLCH chroma usually runs 0 (grey) to about 0.37 (most vivid sRGB). Muted, editorial palettes sit around 0.02-0.08; brand accents around 0.1-0.2.

    Paid links below. As an Amazon Associate we earn from qualifying purchases.

    Library

    Colour references for your next project

    Compare the original references behind this archive. Check the contents, edition and format before choosing a book.

    Book links are Amazon Associates affiliate links. Your price is unchanged; a small commission supports the archive. As an Amazon Associate we earn from qualifying purchases.

    • A Dictionary of Color Combinations by Sanzo Wada — book cover

      Sanzo Wada

      A Dictionary of Color Combinations

      The 2010 Seigensha republication of the 1933–34 original. Japanese import.

      The printed original behind this archive: Wada's 1933–34 combinations on Seigensha's matte plates, in a Japanese binding small enough to carry, and a copy you can cite. Every plate is also free to browse here, hex values and all. Already know it? Vol. 2 is a different book of his later work.

    • A Dictionary of Color Combinations Vol. 2 by Sanzo Wada — book cover

      Sanzo Wada

      A Dictionary of Color Combinations Vol. 2

      Seigensha, 2020. Japanese import.

      Wada's 1935–36 and 1938 follow-ups: 72 plates on the Japanese seasons and 165 drawn from early-century fashion, interior, and graphic design. Not in Vol. 1. Not in this archive. The book itself is a design object — Japanese binding, matte pages, zero captions.

    Torn between the two Wada dictionaries? Vol 1 vs Vol 2, compared plate by plate →

    Book links are Amazon Associates affiliate links. Your price is unchanged; a small commission supports the archive. As an Amazon Associate we earn from qualifying purchases.

    Last updated

    Looking for a combination we don’t have yet?

    Tell us the colour, mood, or palette you were after — it shapes which editorial combinations we add next.

    Did you find what you were looking for?

    Not quite? Tap what was off: