HEX to OKLCH: #0D9488
Also known as: Tailwind v3 teal-600
Result
#0D9488 → oklch(0.600 0.104 184.7)
Values are shown at full precision, so converting back gives exactly #0d9488. 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: 13/255 = 0.05098 → 0.004025 (((x + 0.055) / 1.055)^2.4) G: 148/255 = 0.58039 → 0.296138 (((x + 0.055) / 1.055)^2.4) B: 136/255 = 0.53333 → 0.246201 (((x + 0.055) / 1.055)^2.4)
2. linear sRGB → LMS
l = 0.4122·R + 0.5363·G + 0.0514·B = 0.173154 m = 0.2119·R + 0.6807·G + 0.1074·B = 0.228875 s = 0.0883·R + 0.2817·G + 0.6300·B = 0.238885
3. cube root
l′ = ∛0.173154 = 0.557370 m′ = ∛0.228875 = 0.611692 s′ = ∛0.238885 = 0.620482
4. LMS′ → Oklab
L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.60022 a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = -0.10349 b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = -0.00852
5. Oklab → OKLCH
C = √(a² + b²) = 0.10384 H = atan2(b, a) = 184.704° L = 0.60022
6. OKLCH
oklch(0.60022 0.10384 184.704) rounded: oklch(0.600 0.104 184.7)
All formats
- HEX
- #0d9488
- RGB
- rgb(13 148 136)
- RGB (legacy)
- rgb(13, 148, 136)
- HSL
- hsl(174.67 83.85% 31.57%) → hsl(175 84% 32%)
- HWB
- hwb(175 5% 42%)
- OKLCH
- oklch(0.600 0.104 184.7) · oklch(60.0% 0.104 184.7)
- OKLab
- oklab(0.600 -0.103 -0.009)
- Lab (D50)
- lab(54.88 -35.98 -3.45)
- LCH (D50)
- lch(54.88 36.15 185.48)
- Display P3
- color(display-p3 0.2622 0.5716 0.5328)
- Linear sRGB
- color(srgb-linear 0.0040 0.2961 0.2462)
Gamut: sRGB and Display P3
#0D9488 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.106 and Display P3 reaches 0.143; this color uses 98% of the sRGB chroma available.
CSS snippets
.element {
color: #0d9488;
color: rgb(13 148 136);
color: hsl(175 84% 32%);
color: oklch(0.600 0.104 184.7);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.600 0.104 184.7);
}
/* arbitrary values */
class="text-[#0d9488] bg-[oklch(0.600_0.104_184.7)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.2622 0.5716 0.5328); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #0d9488 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- teal-600#009689
- darkcyan#008B8B
- v3 emerald-600#059669
- emerald-600#009966
- teal#008080
- seagreen#2E8B57
- v3 cyan-600#0891B2
- cadetblue#5F9EA0
Lighter and darker, same hue and chroma
- #30A79A · oklch(0.660 0.104 184.7) · ΔL +0.06
- #008276 · oklch(0.540 0.104 184.7) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?