HSL to HEX: #2DD4BF

Also known as: Tailwind v3 teal-400

Result

hsl(172.46 66.01% 50.39%) → #2DD4BF

Values are shown at full precision, so converting back gives exactly #2dd4bf. 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 = 172.46°, S = 66.01%, L = 50.39%
  2. 2. C

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

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

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

    (R′, G′, B′) = (0.00000, 0.65495, 0.57265)
    R = round((0.00000 + 0.17642) × 255) = 45
    G = round((0.65495 + 0.17642) × 255) = 212
    B = round((0.57265 + 0.17642) × 255) = 191
  6. 6. RGB → HEX

    #2DD4BF

All formats

HEX
#2dd4bf
RGB
rgb(45 212 191)
RGB (legacy)
rgb(45, 212, 191)
HSL
hsl(172.46 66.01% 50.39%) → hsl(172 66% 50%)
HWB
hwb(172 18% 17%)
OKLCH
oklch(0.785 0.133 181.9) · oklch(78.5% 0.133 181.9)
OKLab
oklab(0.785 -0.132 -0.004)
Lab (D50)
lab(76.64 -46.24 -2.00)
LCH (D50)
lch(76.64 46.29 182.48)
Display P3
color(display-p3 0.4079 0.8195 0.7500)
Linear sRGB
color(srgb-linear 0.0262 0.6584 0.5210)

Gamut: sRGB and Display P3

#2DD4BF is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.141 and Display P3 reaches 0.190; this color uses 94% of the sRGB chroma available.

CSS snippets

.element {
  color: #2dd4bf;
  color: rgb(45 212 191);
  color: hsl(172 66% 50%);
  color: oklch(0.785 0.133 181.9);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.785 0.133 181.9);
}
/* arbitrary values */
class="text-[#2dd4bf] bg-[oklch(0.785_0.133_181.9)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.4079 0.8195 0.7500); }
}

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

  • #4BE8D2 · oklch(0.845 0.133 181.9) · ΔL +0.06
  • #00C0AC · oklch(0.725 0.133 181.9) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?