HEX to RGB: #005F5A

Also known as: Tailwind teal-800

Result

#005F5A → rgb(0 95 90)

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. HEX → pairs

    #005F5A → 00 | 5F | 5A
  2. 2. base 16 → base 10

    R = 00₁₆ = 0×16 + 0 = 0
    G = 5F₁₆ = 5×16 + 15 = 95
    B = 5A₁₆ = 5×16 + 10 = 90
  3. 3. RGB

    rgb(0 95 90)

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?