OKLCH to HEX: #00D492

Also known as: Tailwind emerald-400

Result

oklch(0.76885 0.16875 161.949) → #00D492

Values are shown at full precision, so converting back gives exactly #00d492. 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.76885 0.16875 161.949)
  2. 2. OKLCH → Oklab

    a = C·cos H = -0.16044
    b = C·sin H = 0.05229
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.716544
    m′ = L − 0.1056·a − 0.0639·b = 0.782448
    s′ = L − 0.0895·a − 1.2915·b = 0.715676
  4. 4. cube

    l = 0.716544³ = 0.367899
    m = 0.782448³ = 0.479034
    s = 0.715676³ = 0.366564
  5. 5. LMS → linear sRGB

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

    R = 0.00000 × 255 = 0.00 → 0
    G = 0.83138 × 255 = 212.00 → 212
    B = 0.57255 × 255 = 146.00 → 146
  7. 7. RGB → HEX

    #00D492

All formats

HEX
#00d492
RGB
rgb(0 212 146)
RGB (legacy)
rgb(0, 212, 146)
HSL
hsl(161.32 100.00% 41.57%) → hsl(161 100% 42%)
HWB
hwb(161 0% 17%)
OKLCH
oklch(0.769 0.169 161.9) · oklch(76.9% 0.169 161.9)
OKLab
oklab(0.769 -0.160 0.052)
Lab (D50)
lab(75.41 -57.24 19.93)
LCH (D50)
lch(75.41 60.61 160.80)
Display P3
color(display-p3 0.3763 0.8190 0.5921)
Linear sRGB
color(srgb-linear 0.0000 0.6584 0.2874)

Gamut: sRGB and Display P3

#00D492 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.169 and Display P3 reaches 0.232; this color uses 100% of the sRGB chroma available.

CSS snippets

.element {
  color: #00d492;
  color: rgb(0 212 146);
  color: hsl(161 100% 42%);
  color: oklch(0.769 0.169 161.9);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.769 0.169 161.9);
}
/* arbitrary values */
class="text-[#00d492] bg-[oklch(0.769_0.169_161.9)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.3763 0.8190 0.5921); }
}

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

  • #38E8A5 · oklch(0.829 0.169 161.9) · ΔL +0.06
  • #00C080 · oklch(0.709 0.169 161.9) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?