OKLCH to HEX: #4338CA
Also known as: Tailwind v3 indigo-700
Result
oklch(0.45678 0.21458 277.023) → #4338CA
Values are shown at full precision, so converting back gives exactly #4338ca. 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.45678 0.21458 277.023)
2. OKLCH → Oklab
a = C·cos H = 0.02624 b = C·sin H = -0.21297
3. Oklab → LMS′
l′ = L + 0.3963·a + 0.2158·b = 0.421219 m′ = L − 0.1056·a − 0.0639·b = 0.467609 s′ = L − 0.0895·a − 1.2915·b = 0.729480
4. cube
l = 0.421219³ = 0.074735 m = 0.467609³ = 0.102247 s = 0.729480³ = 0.388186
5. LMS → linear sRGB
R = 4.0767·l − 3.3077·m + 0.2310·s = 0.056131 G = −1.2684·l + 2.6098·m − 0.3413·s = 0.039548 B = −0.0042·l − 0.7034·m + 1.7076·s = 0.590637
6. linear → sRGB, × 255
R = 0.26275 × 255 = 67.00 → 67 G = 0.21961 × 255 = 56.00 → 56 B = 0.79217 × 255 = 202.00 → 202
7. RGB → HEX
#4338CA
All formats
- HEX
- #4338ca
- RGB
- rgb(67 56 202)
- RGB (legacy)
- rgb(67, 56, 202)
- HSL
- hsl(244.52 57.94% 50.59%) → hsl(245 58% 51%)
- HWB
- hwb(245 22% 21%)
- OKLCH
- oklch(0.457 0.215 277.0) · oklch(45.7% 0.215 277.0)
- OKLab
- oklab(0.457 0.026 -0.213)
- Lab (D50)
- lab(33.27 40.13 -75.54)
- LCH (D50)
- lch(33.27 85.54 297.98)
- Display P3
- color(display-p3 0.2557 0.2212 0.7621)
- Linear sRGB
- color(srgb-linear 0.0561 0.0395 0.5906)
Gamut: sRGB and Display P3
#4338CA is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.283 and Display P3 reaches 0.286; this color uses 76% of the sRGB chroma available.
CSS snippets
.element {
color: #4338ca;
color: rgb(67 56 202);
color: hsl(245 58% 51%);
color: oklch(0.457 0.215 277.0);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.457 0.215 277.0);
}
/* arbitrary values */
class="text-[#4338ca] bg-[oklch(0.457_0.215_277.0)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.2557 0.2212 0.7621); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #4338ca calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- indigo-700#432DD7
- blue-800#193CB8
- v3 indigo-600#4F46E5
- v3 blue-700#1D4ED8
- v3 blue-800#1E40AF
- indigo-800#372AAC
- v3 violet-800#5B21B6
- blue-700#1447E6
Lighter and darker, same hue and chroma
- #514DDF · oklch(0.517 0.215 277.0) · ΔL +0.06
- #3620B5 · oklch(0.397 0.215 277.0) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?