HSL to HEX: #00D492

Also known as: Tailwind emerald-400

Result

hsl(161.32 100.00% 41.57%) → #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

    H = 161.32°, S = 100.00%, L = 41.57%
  2. 2. C

    C = (1 − |2L − 1|) × S = 0.83140
  3. 3. X

    X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.57256   (H / 60° = 2.6887, sector 2)
  4. 4. m

    m = L − C / 2 = 0.00000
  5. 5. (R′, G′, B′) + m

    (R′, G′, B′) = (0.00000, 0.83140, 0.57256)
    R = round((0.00000 + 0.00000) × 255) = 0
    G = round((0.83140 + 0.00000) × 255) = 212
    B = round((0.57256 + 0.00000) × 255) = 146
  6. 6. 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?