HSL to HEX: #00FA9A

Also known as: CSS mediumspringgreen

Result

hsl(156.96 100.00% 49.02%) → #00FA9A

Values are shown at full precision, so converting back gives exactly #00fa9a. 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 = 156.96°, S = 100.00%, L = 49.02%
  2. 2. C

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

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

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

    (R′, G′, B′) = (0.00000, 0.98040, 0.60393)
    R = round((0.00000 + 0.00000) × 255) = 0
    G = round((0.98040 + 0.00000) × 255) = 250
    B = round((0.60393 + 0.00000) × 255) = 154
  6. 6. RGB → HEX

    #00FA9A

All formats

HEX
#00fa9a
RGB
rgb(0 250 154)
RGB (legacy)
rgb(0, 250, 154)
HSL
hsl(156.96 100.00% 49.02%) → hsl(157 100% 49%)
HWB
hwb(157 0% 2%)
OKLCH
oklch(0.867 0.207 156.9) · oklch(86.7% 0.207 156.9)
OKLab
oklab(0.867 -0.190 0.081)
Lab (D50)
lab(87.24 -67.66 31.60)
LCH (D50)
lch(87.24 74.68 154.96)
Display P3
color(display-p3 0.4489 0.9659 0.6370)
Linear sRGB
color(srgb-linear 0.0000 0.9560 0.3231)

Gamut: sRGB and Display P3

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

CSS snippets

.element {
  color: #00fa9a;
  color: rgb(0 250 154);
  color: hsl(157 100% 49%);
  color: oklch(0.867 0.207 156.9);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.867 0.207 156.9);
}
/* arbitrary values */
class="text-[#00fa9a] bg-[oklch(0.867_0.207_156.9)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.4489 0.9659 0.6370); }
}

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

  • #3EFFAD · oklch(0.927 0.207 156.9) · ΔL +0.06
  • #00E687 · oklch(0.807 0.207 156.9) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?