HEX to HSL: #00786F

Also known as: Tailwind teal-700

Result

#00786F → hsl(176 100% 24%)

Values are shown at full precision, so converting back gives exactly #00786f. 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. RGB ÷ 255

    R = 0.0000
    G = 0.4706
    B = 0.4353
  2. 2. max, min, Δ

    max = 0.4706
    min = 0.0000
    Δ = max − min = 0.4706
  3. 3. L

    L = (max + min) / 2 = 0.2353 = 23.53%
  4. 4. S

    S = Δ / (1 − |2L − 1|) = 1.0000 = 100.00%
  5. 5. H

    max is G → H = 60° × ((B − R) / Δ + 2) = 60° × ((0.4353 − 0.0000) / 0.4706 + 2) = 175.50°
  6. 6. HSL

    hsl(175.50 100.00% 23.53%)

All formats

HEX
#00786f
RGB
rgb(0 120 111)
RGB (legacy)
rgb(0, 120, 111)
HSL
hsl(175.50 100.00% 23.53%) → hsl(176 100% 24%)
HWB
hwb(176 0% 53%)
OKLCH
oklch(0.515 0.090 185.7) · oklch(51.5% 0.090 185.7)
OKLab
oklab(0.515 -0.090 -0.009)
Lab (D50)
lab(44.84 -31.25 -3.60)
LCH (D50)
lch(44.84 31.46 186.58)
Display P3
color(display-p3 0.2008 0.4632 0.4345)
Linear sRGB
color(srgb-linear 0.0000 0.1878 0.1590)

Gamut: sRGB and Display P3

#00786F is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.090 and Display P3 reaches 0.122; this color uses 100% of the sRGB chroma available.

CSS snippets

.element {
  color: #00786f;
  color: rgb(0 120 111);
  color: hsl(176 100% 24%);
  color: oklch(0.515 0.090 185.7);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.515 0.090 185.7);
}
/* arbitrary values */
class="text-[#00786f] bg-[oklch(0.515_0.090_185.7)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.2008 0.4632 0.4345); }
}

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

  • #258A81 · oklch(0.575 0.090 185.7) · ΔL +0.06
  • #00665E · oklch(0.455 0.090 185.7) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?