HSL to HEX: #00786F
Also known as: Tailwind teal-700
Result
hsl(175.50 100.00% 23.53%) → #00786F
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. input
H = 175.50°, S = 100.00%, L = 23.53%
2. C
C = (1 − |2L − 1|) × S = 0.47060
3. X
X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.43530 (H / 60° = 2.9250, sector 2)
4. m
m = L − C / 2 = 0.00000
5. (R′, G′, B′) + m
(R′, G′, B′) = (0.00000, 0.47060, 0.43530) R = round((0.00000 + 0.00000) × 255) = 0 G = round((0.47060 + 0.00000) × 255) = 120 B = round((0.43530 + 0.00000) × 255) = 111
6. RGB → HEX
#00786F
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).
- v3 teal-700#0F766E
- teal#008080
- v3 emerald-700#047857
- emerald-700#007A55
- v3 cyan-700#0E7490
- darkcyan#008B8B
- cyan-700#007595
- teal-800#005F5A
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
Guides: What is OKLCH?