OKLCH to HEX: #F5F3FF
Also known as: Tailwind violet-50, Tailwind v3 violet-50
Result
oklch(0.96914 0.01606 293.756) → #F5F3FF
Values are shown at full precision, so converting back gives exactly #f5f3ff. 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.96914 0.01606 293.756)
2. OKLCH → Oklab
a = C·cos H = 0.00647 b = C·sin H = -0.01470
3. Oklab → LMS′
l′ = L + 0.3963·a + 0.2158·b = 0.968532 m′ = L − 0.1056·a − 0.0639·b = 0.969396 s′ = L − 0.0895·a − 1.2915·b = 0.987545
4. cube
l = 0.968532³ = 0.908536 m = 0.969396³ = 0.910968 s = 0.987545³ = 0.963098
5. LMS → linear sRGB
R = 4.0767·l − 3.3077·m + 0.2310·s = 0.913092 G = −1.2684·l + 2.6098·m − 0.3413·s = 0.896261 B = −0.0042·l − 0.7034·m + 1.7076·s = 0.999996
6. linear → sRGB, × 255
R = 0.96078 × 255 = 245.00 → 245 G = 0.95294 × 255 = 243.00 → 243 B = 1.00000 × 255 = 255.00 → 255
7. RGB → HEX
#F5F3FF
All formats
- HEX
- #f5f3ff
- RGB
- rgb(245 243 255)
- RGB (legacy)
- rgb(245, 243, 255)
- HSL
- hsl(250.00 100.00% 97.65%) → hsl(250 100% 98%)
- HWB
- hwb(250 95% 0%)
- OKLCH
- oklch(0.969 0.016 293.8) · oklch(96.9% 0.016 293.8)
- OKLab
- oklab(0.969 0.006 -0.015)
- Lab (D50)
- lab(96.26 2.30 -5.54)
- LCH (D50)
- lch(96.26 5.99 292.53)
- Display P3
- color(display-p3 0.9594 0.9532 0.9960)
- Linear sRGB
- color(srgb-linear 0.9131 0.8963 1.0000)
Gamut: sRGB and Display P3
#F5F3FF is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.016 and Display P3 reaches 0.018; this color uses 100% of the sRGB chroma available.
CSS snippets
.element {
color: #f5f3ff;
color: rgb(245 243 255);
color: hsl(250 100% 98%);
color: oklch(0.969 0.016 293.8);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.969 0.016 293.8);
}
/* arbitrary values */
class="text-[#f5f3ff] bg-[oklch(0.969_0.016_293.8)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.9594 0.9532 0.9960); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #f5f3ff calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- purple-50#FAF5FF
- indigo-50#EEF2FF
- blue-50#EFF6FF
- fuchsia-50#FDF4FF
- slate-100#F1F5F9
- pink-50#FDF2F8
- aliceblue#F0F8FF
- gray-100#F3F4F6
Lighter and darker, same hue and chroma
- #FFFDFF · oklch(1.000 0.016 293.8) · ΔL +0.06
- #E1DFEB · oklch(0.909 0.016 293.8) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?