OKLCH to HEX: #4ADE80

Also known as: Tailwind v3 green-400

Result

oklch(0.80035 0.18206 151.711) → #4ADE80

Values are shown at full precision, so converting back gives exactly #4ade80. 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.80035 0.18206 151.711)
  2. 2. OKLCH → Oklab

    a = C·cos H = -0.16032
    b = C·sin H = 0.08628
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.755431
    m′ = L − 0.1056·a − 0.0639·b = 0.811764
    s′ = L − 0.0895·a − 1.2915·b = 0.703264
  4. 4. cube

    l = 0.755431³ = 0.431106
    m = 0.811764³ = 0.534920
    s = 0.703264³ = 0.347821
  5. 5. LMS → linear sRGB

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

    R = 0.29020 × 255 = 74.00 → 74
    G = 0.87059 × 255 = 222.00 → 222
    B = 0.50196 × 255 = 128.00 → 128
  7. 7. RGB → HEX

    #4ADE80

All formats

HEX
#4ade80
RGB
rgb(74 222 128)
RGB (legacy)
rgb(74, 222, 128)
HSL
hsl(141.89 69.16% 58.04%) → hsl(142 69% 58%)
HWB
hwb(142 29% 13%)
OKLCH
oklch(0.800 0.182 151.7) · oklch(80.0% 0.182 151.7)
OKLab
oklab(0.800 -0.160 0.086)
Lab (D50)
lab(79.16 -56.20 34.17)
LCH (D50)
lch(79.16 65.77 148.70)
Display P3
color(display-p3 0.4685 0.8589 0.5377)
Linear sRGB
color(srgb-linear 0.0685 0.7305 0.2159)

Gamut: sRGB and Display P3

#4ADE80 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.212 and Display P3 reaches 0.295; this color uses 86% of the sRGB chroma available.

CSS snippets

.element {
  color: #4ade80;
  color: rgb(74 222 128);
  color: hsl(142 69% 58%);
  color: oklch(0.800 0.182 151.7);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.800 0.182 151.7);
}
/* arbitrary values */
class="text-[#4ade80] bg-[oklch(0.800_0.182_151.7)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.4685 0.8589 0.5377); }
}

/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #4ade80 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

  • #62F293 · oklch(0.860 0.182 151.7) · ΔL +0.06
  • #2ECA6D · oklch(0.740 0.182 151.7) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?