HSL to HEX: #00BC7D

Also known as: Tailwind emerald-500

Result

hsl(159.89 100.00% 36.86%) → #00BC7D

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

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

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

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

    (R′, G′, B′) = (0.00000, 0.73720, 0.49012)
    R = round((0.00000 + 0.00000) × 255) = 0
    G = round((0.73720 + 0.00000) × 255) = 188
    B = round((0.49012 + 0.00000) × 255) = 125
  6. 6. RGB → HEX

    #00BC7D

All formats

HEX
#00bc7d
RGB
rgb(0 188 125)
RGB (legacy)
rgb(0, 188, 125)
HSL
hsl(159.89 100.00% 36.86%) → hsl(160 100% 37%)
HWB
hwb(160 0% 26%)
OKLCH
oklch(0.702 0.158 160.4) · oklch(70.2% 0.158 160.4)
OKLab
oklab(0.702 -0.149 0.053)
Lab (D50)
lab(67.50 -52.99 20.25)
LCH (D50)
lch(67.50 56.72 159.08)
Display P3
color(display-p3 0.3305 0.7262 0.5097)
Linear sRGB
color(srgb-linear 0.0000 0.5029 0.2051)

Gamut: sRGB and Display P3

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

CSS snippets

.element {
  color: #00bc7d;
  color: rgb(0 188 125);
  color: hsl(160 100% 37%);
  color: oklch(0.702 0.158 160.4);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.702 0.158 160.4);
}
/* arbitrary values */
class="text-[#00bc7d] bg-[oklch(0.702_0.158_160.4)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.3305 0.7262 0.5097); }
}

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

  • #33D08F · oklch(0.762 0.158 160.4) · ΔL +0.06
  • #00A96B · oklch(0.642 0.158 160.4) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?