OKLCH to HEX: #9ACD32

Also known as: CSS yellowgreen

Result

oklch(0.78485 0.18374 126.636) → #9ACD32

Values are shown at full precision, so converting back gives exactly #9acd32. The rounded form is what you normally paste into CSS.

Step-by-step math

Every number below is computed from the input, nothing is looked up.

  1. 1. input

    oklch(0.78485 0.18374 126.636)
  2. 2. OKLCH → Oklab

    a = C·cos H = -0.10964
    b = C·sin H = 0.14744
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.773213
    m′ = L − 0.1056·a − 0.0639·b = 0.787009
    s′ = L − 0.0895·a − 1.2915·b = 0.604244
  4. 4. cube

    l = 0.773213³ = 0.462271
    m = 0.787009³ = 0.487461
    s = 0.604244³ = 0.220616
  5. 5. LMS → linear sRGB

    R = 4.0767·l − 3.3077·m + 0.2310·s = 0.323136
    G = −1.2684·l + 2.6098·m − 0.3413·s = 0.610492
    B = −0.0042·l − 0.7034·m + 1.7076·s = 0.031898
  6. 6. linear → sRGB, × 255

    R = 0.60392 × 255 = 154.00 → 154
    G = 0.80392 × 255 = 205.00 → 205
    B = 0.19608 × 255 = 50.00 → 50
  7. 7. RGB → HEX

    #9ACD32

All formats

HEX
#9acd32
RGB
rgb(154 205 50)
RGB (legacy)
rgb(154, 205, 50)
HSL
hsl(79.74 60.78% 50.00%) → hsl(80 61% 50%)
HWB
hwb(80 20% 20%)
OKLCH
oklch(0.785 0.184 126.6) · oklch(78.5% 0.184 126.6)
OKLab
oklab(0.785 -0.110 0.147)
Lab (D50)
lab(76.77 -33.10 65.63)
LCH (D50)
lch(76.77 73.50 116.76)
Display P3
color(display-p3 0.6454 0.7983 0.3109)
Linear sRGB
color(srgb-linear 0.3231 0.6105 0.0319)

Gamut: sRGB and Display P3

#9ACD32 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.201 and Display P3 reaches 0.235; this color uses 91% of the sRGB chroma available.

CSS snippets

.element {
  color: #9acd32;
  color: rgb(154 205 50);
  color: hsl(80 61% 50%);
  color: oklch(0.785 0.184 126.6);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.785 0.184 126.6);
}
/* arbitrary values */
class="text-[#9acd32] bg-[oklch(0.785_0.184_126.6)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.6454 0.7983 0.3109); }
}

/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #9acd32 calc(l - 0.1) c h); }

Nearby colors

Closest colors in the Tailwind and CSS named palettes (OKLab distance).

Lighter and darker, same hue and chroma

  • #ADE14B · oklch(0.845 0.184 126.6) · ΔL +0.06
  • #88B90B · oklch(0.725 0.184 126.6) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?