OKLCH to HEX: #05DF72

Also known as: Tailwind green-400

Result

oklch(0.79141 0.20908 151.662) → #05DF72

Values are shown at full precision, so converting back gives exactly #05df72. 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.79141 0.20908 151.662)
  2. 2. OKLCH → Oklab

    a = C·cos H = -0.18402
    b = C·sin H = 0.09924
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.739891
    m′ = L − 0.1056·a − 0.0639·b = 0.804499
    s′ = L − 0.0895·a − 1.2915·b = 0.679705
  4. 4. cube

    l = 0.739891³ = 0.405046
    m = 0.804499³ = 0.520686
    s = 0.679705³ = 0.314022
  5. 5. LMS → linear sRGB

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

    R = 0.01960 × 255 = 5.00 → 5
    G = 0.87451 × 255 = 223.00 → 223
    B = 0.44706 × 255 = 114.00 → 114
  7. 7. RGB → HEX

    #05DF72

All formats

HEX
#05df72
RGB
rgb(5 223 114)
RGB (legacy)
rgb(5, 223, 114)
HSL
hsl(150.00 95.61% 44.71%) → hsl(150 96% 45%)
HWB
hwb(150 2% 13%)
OKLCH
oklch(0.791 0.209 151.7) · oklch(79.1% 0.209 151.7)
OKLab
oklab(0.791 -0.184 0.099)
Lab (D50)
lab(78.43 -64.91 39.84)
LCH (D50)
lch(78.43 76.17 148.46)
Display P3
color(display-p3 0.3991 0.8616 0.4919)
Linear sRGB
color(srgb-linear 0.0015 0.7379 0.1683)

Gamut: sRGB and Display P3

#05DF72 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.210 and Display P3 reaches 0.292; this color uses 100% of the sRGB chroma available.

CSS snippets

.element {
  color: #05df72;
  color: rgb(5 223 114);
  color: hsl(150 96% 45%);
  color: oklch(0.791 0.209 151.7);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.791 0.209 151.7);
}
/* arbitrary values */
class="text-[#05df72] bg-[oklch(0.791_0.209_151.7)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.3991 0.8616 0.4919); }
}

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

  • #3AF385 · oklch(0.851 0.209 151.7) · ΔL +0.06
  • #00CB5F · oklch(0.731 0.209 151.7) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?