OKLCH to HEX: #134E4A
Also known as: Tailwind v3 teal-900
Result
oklch(0.38606 0.05902 188.416) → #134E4A
Values are shown at full precision, so converting back gives exactly #134e4a. 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.38606 0.05902 188.416)
2. OKLCH → Oklab
a = C·cos H = -0.05838 b = C·sin H = -0.00864
3. Oklab → LMS′
l′ = L + 0.3963·a + 0.2158·b = 0.361056 m′ = L − 0.1056·a − 0.0639·b = 0.392775 s′ = L − 0.0895·a − 1.2915·b = 0.402440
4. cube
l = 0.361056³ = 0.047068 m = 0.392775³ = 0.060594 s = 0.402440³ = 0.065179
5. LMS → linear sRGB
R = 4.0767·l − 3.3077·m + 0.2310·s = 0.006509 G = −1.2684·l + 2.6098·m − 0.3413·s = 0.076187 B = −0.0042·l − 0.7034·m + 1.7076·s = 0.068479
6. linear → sRGB, × 255
R = 0.07449 × 255 = 18.99 → 19 G = 0.30589 × 255 = 78.00 → 78 B = 0.29020 × 255 = 74.00 → 74
7. RGB → HEX
#134E4A
All formats
- HEX
- #134e4a
- RGB
- rgb(19 78 74)
- RGB (legacy)
- rgb(19, 78, 74)
- HSL
- hsl(175.93 60.82% 19.02%) → hsl(176 61% 19%)
- HWB
- hwb(176 7% 69%)
- OKLCH
- oklch(0.386 0.059 188.4) · oklch(38.6% 0.059 188.4)
- OKLab
- oklab(0.386 -0.058 -0.009)
- Lab (D50)
- lab(29.47 -20.09 -3.38)
- LCH (D50)
- lch(29.47 20.37 189.54)
- Display P3
- color(display-p3 0.1468 0.3013 0.2891)
- Linear sRGB
- color(srgb-linear 0.0065 0.0762 0.0685)
Gamut: sRGB and Display P3
#134E4A is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.067 and Display P3 reaches 0.090; this color uses 88% of the sRGB chroma available.
CSS snippets
.element {
color: #134e4a;
color: rgb(19 78 74);
color: hsl(176 61% 19%);
color: oklch(0.386 0.059 188.4);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.386 0.059 188.4);
}
/* arbitrary values */
class="text-[#134e4a] bg-[oklch(0.386_0.059_188.4)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.1468 0.3013 0.2891); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #134e4a calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- teal-900#0B4F4A
- v3 emerald-900#064E3B
- darkslategray#2F4F4F
- emerald-900#004F3B
- v3 cyan-900#164E63
- cyan-900#104E64
- mist-700#394447
- v3 teal-800#115E59
Lighter and darker, same hue and chroma
- #275F5A · oklch(0.446 0.059 188.4) · ΔL +0.06
- #003E3A · oklch(0.326 0.059 188.4) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?