OKLCH to HEX: #00786F
Also known as: Tailwind teal-700
Result
oklch(0.51518 0.09047 185.733) → #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
oklch(0.51518 0.09047 185.733)
2. OKLCH → Oklab
a = C·cos H = -0.09002 b = C·sin H = -0.00904
3. Oklab → LMS′
l′ = L + 0.3963·a + 0.2158·b = 0.477552 m′ = L − 0.1056·a − 0.0639·b = 0.525259 s′ = L − 0.0895·a − 1.2915·b = 0.534907
4. cube
l = 0.477552³ = 0.108909 m = 0.525259³ = 0.144918 s = 0.534907³ = 0.153050
5. LMS → linear sRGB
R = 4.0767·l − 3.3077·m + 0.2310·s = -0.000003 G = −1.2684·l + 2.6098·m − 0.3413·s = 0.187817 B = −0.0042·l − 0.7034·m + 1.7076·s = 0.158956
6. linear → sRGB, × 255
R = 0.00000 × 255 = 0.00 → 0 G = 0.47058 × 255 = 120.00 → 120 B = 0.43529 × 255 = 111.00 → 111
7. 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?