OKLCH to HEX: #4A044E
Also known as: Tailwind v3 fuchsia-950
Result
oklch(0.29320 0.13086 325.661) → #4A044E
Values are shown at full precision, so converting back gives exactly #4a044e. 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.29320 0.13086 325.661)
2. OKLCH → Oklab
a = C·cos H = 0.10805 b = C·sin H = -0.07382
3. Oklab → LMS′
l′ = L + 0.3963·a + 0.2158·b = 0.320096 m′ = L − 0.1056·a − 0.0639·b = 0.286507 s′ = L − 0.0895·a − 1.2915·b = 0.378864
4. cube
l = 0.320096³ = 0.032797 m = 0.286507³ = 0.023518 s = 0.378864³ = 0.054381
5. LMS → linear sRGB
R = 4.0767·l − 3.3077·m + 0.2310·s = 0.068475 G = −1.2684·l + 2.6098·m − 0.3413·s = 0.001214 B = −0.0042·l − 0.7034·m + 1.7076·s = 0.076182
6. linear → sRGB, × 255
R = 0.29019 × 255 = 74.00 → 74 G = 0.01569 × 255 = 4.00 → 4 B = 0.30587 × 255 = 78.00 → 78
7. RGB → HEX
#4A044E
All formats
- HEX
- #4a044e
- RGB
- rgb(74 4 78)
- RGB (legacy)
- rgb(74, 4, 78)
- HSL
- hsl(296.76 90.24% 16.08%) → hsl(297 90% 16%)
- HWB
- hwb(297 2% 69%)
- OKLCH
- oklch(0.293 0.131 325.7) · oklch(29.3% 0.131 325.7)
- OKLab
- oklab(0.293 0.108 -0.074)
- Lab (D50)
- lab(15.86 37.50 -26.39)
- LCH (D50)
- lch(15.86 45.85 324.86)
- Display P3
- color(display-p3 0.2637 0.0444 0.2947)
- Linear sRGB
- color(srgb-linear 0.0685 0.0012 0.0762)
Gamut: sRGB and Display P3
#4A044E is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.137 and Display P3 reaches 0.149; this color uses 96% of the sRGB chroma available.
CSS snippets
.element {
color: #4a044e;
color: rgb(74 4 78);
color: hsl(297 90% 16%);
color: oklch(0.293 0.131 325.7);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.293 0.131 325.7);
}
/* arbitrary values */
class="text-[#4a044e] bg-[oklch(0.293_0.131_325.7)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.2637 0.0444 0.2947); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #4a044e calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- fuchsia-950#4B004F
- v3 purple-950#3B0764
- purple-950#3C0366
- v3 violet-950#2E1065
- pink-950#510424
- v3 pink-950#500724
- violet-950#2F0D68
- indigo#4B0082
Lighter and darker, same hue and chroma
- #5B1A5F · oklch(0.353 0.131 325.7) · ΔL +0.06
- #39003D · oklch(0.233 0.131 325.7) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?