HEX to HSL: #F5F3FF
Also known as: Tailwind violet-50, Tailwind v3 violet-50
Result
#F5F3FF → hsl(250 100% 98%)
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. RGB ÷ 255
R = 0.9608 G = 0.9529 B = 1.0000
2. max, min, Δ
max = 1.0000 min = 0.9529 Δ = max − min = 0.0471
3. L
L = (max + min) / 2 = 0.9765 = 97.65%
4. S
S = Δ / (1 − |2L − 1|) = 1.0000 = 100.00%
5. H
max is B → H = 60° × ((R − G) / Δ + 4) = 60° × ((0.9608 − 0.9529) / 0.0471 + 4) = 250.00°
6. HSL
hsl(250.00 100.00% 97.65%)
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?