HEX to OKLCH: #8A0194
Also known as: Tailwind fuchsia-800
Result
#8A0194 → oklch(0.452 0.211 324.7)
Values are shown at full precision, so converting back gives exactly #8a0194. 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: 138/255 = 0.54118 → 0.254152 (((x + 0.055) / 1.055)^2.4) G: 1/255 = 0.00392 → 0.000304 (÷ 12.92) B: 148/255 = 0.58039 → 0.296138 (((x + 0.055) / 1.055)^2.4)
2. linear sRGB → LMS
l = 0.4122·R + 0.5363·G + 0.0514·B = 0.120165 m = 0.2119·R + 0.6807·G + 0.1074·B = 0.085867 s = 0.0883·R + 0.2817·G + 0.6300·B = 0.209089
3. cube root
l′ = ∛0.120165 = 0.493468 m′ = ∛0.085867 = 0.441172 s′ = ∛0.209089 = 0.593531
4. LMS′ → Oklab
L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.45156 a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = 0.17209 b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = -0.12185
5. Oklab → OKLCH
C = √(a² + b²) = 0.21087 H = atan2(b, a) = 324.699° L = 0.45156
6. OKLCH
oklch(0.45156 0.21087 324.699) rounded: oklch(0.452 0.211 324.7)
All formats
- HEX
- #8a0194
- RGB
- rgb(138 1 148)
- RGB (legacy)
- rgb(138, 1, 148)
- HSL
- hsl(295.92 98.66% 29.22%) → hsl(296 99% 29%)
- HWB
- hwb(296 0% 42%)
- OKLCH
- oklch(0.452 0.211 324.7) · oklch(45.2% 0.211 324.7)
- OKLab
- oklab(0.452 0.172 -0.122)
- Lab (D50)
- lab(32.86 60.28 -43.51)
- LCH (D50)
- lch(32.86 74.34 324.17)
- Display P3
- color(display-p3 0.4946 0.0913 0.5602)
- Linear sRGB
- color(srgb-linear 0.2542 0.0003 0.2961)
Gamut: sRGB and Display P3
#8A0194 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.211 and Display P3 reaches 0.230; this color uses 100% of the sRGB chroma available.
CSS snippets
.element {
color: #8a0194;
color: rgb(138 1 148);
color: hsl(296 99% 29%);
color: oklch(0.452 0.211 324.7);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.452 0.211 324.7);
}
/* arbitrary values */
class="text-[#8a0194] bg-[oklch(0.452_0.211_324.7)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.4946 0.0913 0.5602); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #8a0194 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- darkmagenta#8B008B
- v3 fuchsia-800#86198F
- purple#800080
- fuchsia-900#721378
- v3 fuchsia-700#A21CAF
- v3 fuchsia-900#701A75
- v3 purple-800#6B21A8
- purple-800#6E11B0
Lighter and darker, same hue and chroma
- #9D25A7 · oklch(0.512 0.211 324.7) · ΔL +0.06
- #770081 · oklch(0.392 0.211 324.7) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?