OKLCH to HEX: #00C950

Also known as: Tailwind green-500

Result

oklch(0.72886 0.21194 147.822) → #00C950

Values are shown at full precision, so converting back gives exactly #00c950. 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.72886 0.21194 147.822)
  2. 2. OKLCH → Oklab

    a = C·cos H = -0.17939
    b = C·sin H = 0.11287
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.682120
    m′ = L − 0.1056·a − 0.0639·b = 0.740589
    s′ = L − 0.0895·a − 1.2915·b = 0.599144
  4. 4. cube

    l = 0.682120³ = 0.317382
    m = 0.740589³ = 0.406192
    s = 0.599144³ = 0.215076
  5. 5. LMS → linear sRGB

    R = 4.0767·l − 3.3077·m + 0.2310·s = -0.000005
    G = −1.2684·l + 2.6098·m − 0.3413·s = 0.584074
    B = −0.0042·l − 0.7034·m + 1.7076·s = 0.080213
  6. 6. linear → sRGB, × 255

    R = 0.00000 × 255 = 0.00 → 0
    G = 0.78823 × 255 = 201.00 → 201
    B = 0.31371 × 255 = 80.00 → 80
  7. 7. RGB → HEX

    #00C950

All formats

HEX
#00c950
RGB
rgb(0 201 80)
RGB (legacy)
rgb(0, 201, 80)
HSL
hsl(143.88 100.00% 39.41%) → hsl(144 100% 39%)
HWB
hwb(144 0% 21%)
OKLCH
oklch(0.729 0.212 147.8) · oklch(72.9% 0.212 147.8)
OKLab
oklab(0.729 -0.179 0.113)
Lab (D50)
lab(71.12 -62.56 46.81)
LCH (D50)
lch(71.12 78.13 143.19)
Display P3
color(display-p3 0.3553 0.7765 0.3739)
Linear sRGB
color(srgb-linear 0.0000 0.5841 0.0802)

Gamut: sRGB and Display P3

#00C950 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.297; this color uses 100% of the sRGB chroma available.

CSS snippets

.element {
  color: #00c950;
  color: rgb(0 201 80);
  color: hsl(144 100% 39%);
  color: oklch(0.729 0.212 147.8);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.729 0.212 147.8);
}
/* arbitrary values */
class="text-[#00c950] bg-[oklch(0.729_0.212_147.8)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.3553 0.7765 0.3739); }
}

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

  • #35DD64 · oklch(0.789 0.212 147.8) · ΔL +0.06
  • #00B53C · oklch(0.669 0.212 147.8) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?