HEX to OKLCH: #00786F
Also known as: Tailwind teal-700
Result
#00786F → oklch(0.515 0.090 185.7)
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. sRGB → linear
R: 0/255 = 0.00000 → 0.000000 (÷ 12.92) G: 120/255 = 0.47059 → 0.187821 (((x + 0.055) / 1.055)^2.4) B: 111/255 = 0.43529 → 0.158961 (((x + 0.055) / 1.055)^2.4)
2. linear sRGB → LMS
l = 0.4122·R + 0.5363·G + 0.0514·B = 0.108912 m = 0.2119·R + 0.6807·G + 0.1074·B = 0.144921 s = 0.0883·R + 0.2817·G + 0.6300·B = 0.153055
3. cube root
l′ = ∛0.108912 = 0.477557 m′ = ∛0.144921 = 0.525264 s′ = ∛0.153055 = 0.534912
4. LMS′ → Oklab
L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.51518 a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = -0.09002 b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = -0.00904
5. Oklab → OKLCH
C = √(a² + b²) = 0.09047 H = atan2(b, a) = 185.733° L = 0.51518
6. OKLCH
oklch(0.51518 0.09047 185.733) rounded: oklch(0.515 0.090 185.7)
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?