HSL to HEX: #005F5A

Also known as: Tailwind teal-800

Result

hsl(176.84 100.00% 18.63%) → #005F5A

Values are shown at full precision, so converting back gives exactly #005f5a. 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 = 176.84°, S = 100.00%, L = 18.63%
  2. 2. C

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

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

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

    (R′, G′, B′) = (0.00000, 0.37260, 0.35298)
    R = round((0.00000 + 0.00000) × 255) = 0
    G = round((0.37260 + 0.00000) × 255) = 95
    B = round((0.35298 + 0.00000) × 255) = 90
  6. 6. RGB → HEX

    #005F5A

All formats

HEX
#005f5a
RGB
rgb(0 95 90)
RGB (legacy)
rgb(0, 95, 90)
HSL
hsl(176.84 100.00% 18.63%) → hsl(177 100% 19%)
HWB
hwb(177 0% 63%)
OKLCH
oklch(0.438 0.076 188.5) · oklch(43.8% 0.076 188.5)
OKLab
oklab(0.438 -0.075 -0.011)
Lab (D50)
lab(35.64 -25.90 -4.39)
LCH (D50)
lch(35.64 26.27 189.63)
Display P3
color(display-p3 0.1531 0.3666 0.3515)
Linear sRGB
color(srgb-linear 0.0000 0.1144 0.1022)

Gamut: sRGB and Display P3

#005F5A is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.076 and Display P3 reaches 0.102; this color uses 100% of the sRGB chroma available.

CSS snippets

.element {
  color: #005f5a;
  color: rgb(0 95 90);
  color: hsl(177 100% 19%);
  color: oklch(0.438 0.076 188.5);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.438 0.076 188.5);
}
/* arbitrary values */
class="text-[#005f5a] bg-[oklch(0.438_0.076_188.5)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.1531 0.3666 0.3515); }
}

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

  • #1F706B · oklch(0.498 0.076 188.5) · ΔL +0.06
  • #004E4A · oklch(0.378 0.076 188.5) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?