OKLCH to HEX: #A684FF
Also known as: Tailwind violet-400
Result
oklch(0.69887 0.17596 294.115) → #A684FF
Values are shown at full precision, so converting back gives exactly #a684ff. 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.69887 0.17596 294.115)
2. OKLCH → Oklab
a = C·cos H = 0.07189 b = C·sin H = -0.16060
3. Oklab → LMS′
l′ = L + 0.3963·a + 0.2158·b = 0.692705 m′ = L − 0.1056·a − 0.0639·b = 0.701536 s′ = L − 0.0895·a − 1.2915·b = 0.899854
4. cube
l = 0.692705³ = 0.332387 m = 0.701536³ = 0.345263 s = 0.899854³ = 0.728645
5. LMS → linear sRGB
R = 4.0767·l − 3.3077·m + 0.2310·s = 0.381321 G = −1.2684·l + 2.6098·m − 0.3413·s = 0.230740 B = −0.0042·l − 0.7034·m + 1.7076·s = 0.999986
6. linear → sRGB, × 255
R = 0.65098 × 255 = 166.00 → 166 G = 0.51765 × 255 = 132.00 → 132 B = 0.99999 × 255 = 255.00 → 255
7. RGB → HEX
#A684FF
All formats
- HEX
- #a684ff
- RGB
- rgb(166 132 255)
- RGB (legacy)
- rgb(166, 132, 255)
- HSL
- hsl(256.59 100.00% 75.88%) → hsl(257 100% 76%)
- HWB
- hwb(257 52% 0%)
- OKLCH
- oklch(0.699 0.176 294.1) · oklch(69.9% 0.176 294.1)
- OKLab
- oklab(0.699 0.072 -0.161)
- Lab (D50)
- lab(62.58 33.63 -57.54)
- LCH (D50)
- lch(62.58 66.65 300.30)
- Display P3
- color(display-p3 0.6299 0.5228 0.9703)
- Linear sRGB
- color(srgb-linear 0.3813 0.2307 1.0000)
Gamut: sRGB and Display P3
#A684FF is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.176 and Display P3 reaches 0.191; this color uses 100% of the sRGB chroma available.
CSS snippets
.element {
color: #a684ff;
color: rgb(166 132 255);
color: hsl(257 100% 76%);
color: oklch(0.699 0.176 294.1);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.699 0.176 294.1);
}
/* arbitrary values */
class="text-[#a684ff] bg-[oklch(0.699_0.176_294.1)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.6299 0.5228 0.9703); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #a684ff calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- v3 violet-400#A78BFA
- v3 purple-400#C084FC
- purple-400#C27AFF
- v3 indigo-400#818CF8
- indigo-400#7C86FF
- mediumpurple#9370DB
- v3 purple-500#A855F7
- cornflowerblue#6495ED
Lighter and darker, same hue and chroma
- #B897FF · oklch(0.759 0.176 294.1) · ΔL +0.06
- #9471EA · oklch(0.639 0.176 294.1) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?