OKLCH to HEX: #6E11B0
Also known as: Tailwind purple-800
Result
oklch(0.43834 0.21794 303.915) → #6E11B0
Values are shown at full precision, so converting back gives exactly #6e11b0. 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.43834 0.21794 303.915)
2. OKLCH → Oklab
a = C·cos H = 0.12160 b = C·sin H = -0.18086
3. Oklab → LMS′
l′ = L + 0.3963·a + 0.2158·b = 0.447505 m′ = L − 0.1056·a − 0.0639·b = 0.437052 s′ = L − 0.0895·a − 1.2915·b = 0.661038
4. cube
l = 0.447505³ = 0.089618 m = 0.437052³ = 0.083483 s = 0.661038³ = 0.288855
5. LMS → linear sRGB
R = 4.0767·l − 3.3077·m + 0.2310·s = 0.155926 G = −1.2684·l + 2.6098·m − 0.3413·s = 0.005605 B = −0.0042·l − 0.7034·m + 1.7076·s = 0.434152
6. linear → sRGB, × 255
R = 0.43137 × 255 = 110.00 → 110 G = 0.06666 × 255 = 17.00 → 17 B = 0.69020 × 255 = 176.00 → 176
7. RGB → HEX
#6E11B0
All formats
- HEX
- #6e11b0
- RGB
- rgb(110 17 176)
- RGB (legacy)
- rgb(110, 17, 176)
- HSL
- hsl(275.09 82.38% 37.84%) → hsl(275 82% 38%)
- HWB
- hwb(275 7% 31%)
- OKLCH
- oklch(0.438 0.218 303.9) · oklch(43.8% 0.218 303.9)
- OKLab
- oklab(0.438 0.122 -0.181)
- Lab (D50)
- lab(30.65 56.80 -64.31)
- LCH (D50)
- lch(30.65 85.80 311.45)
- Display P3
- color(display-p3 0.3948 0.1036 0.6640)
- Linear sRGB
- color(srgb-linear 0.1559 0.0056 0.4342)
Gamut: sRGB and Display P3
#6E11B0 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.229 and Display P3 reaches 0.240; this color uses 95% of the sRGB chroma available.
CSS snippets
.element {
color: #6e11b0;
color: rgb(110 17 176);
color: hsl(275 82% 38%);
color: oklch(0.438 0.218 303.9);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.438 0.218 303.9);
}
/* arbitrary values */
class="text-[#6e11b0] bg-[oklch(0.438_0.218_303.9)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.3948 0.1036 0.6640); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #6e11b0 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- v3 purple-800#6B21A8
- v3 violet-800#5B21B6
- violet-800#5D0EC0
- rebeccapurple#663399
- v3 purple-700#7E22CE
- purple-900#59168B
- v3 violet-700#6D28D9
- violet-900#4D179A
Lighter and darker, same hue and chroma
- #7F2DC4 · oklch(0.498 0.218 303.9) · ΔL +0.06
- #5D009C · oklch(0.378 0.218 303.9) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?