HEX to HSL: #C4B4FF
Also known as: Tailwind violet-300
Result
#C4B4FF → hsl(253 100% 85%)
Values are shown at full precision, so converting back gives exactly #c4b4ff. 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.7686 G = 0.7059 B = 1.0000
2. max, min, Δ
max = 1.0000 min = 0.7059 Δ = max − min = 0.2941
3. L
L = (max + min) / 2 = 0.8529 = 85.29%
4. S
S = Δ / (1 − |2L − 1|) = 1.0000 = 100.00%
5. H
max is B → H = 60° × ((R − G) / Δ + 4) = 60° × ((0.7686 − 0.7059) / 0.2941 + 4) = 252.80°
6. HSL
hsl(252.80 100.00% 85.29%)
All formats
- HEX
- #c4b4ff
- RGB
- rgb(196 180 255)
- RGB (legacy)
- rgb(196, 180, 255)
- HSL
- hsl(252.80 100.00% 85.29%) → hsl(253 100% 85%)
- HWB
- hwb(253 71% 0%)
- OKLCH
- oklch(0.810 0.106 293.7) · oklch(81.0% 0.106 293.7)
- OKLab
- oklab(0.810 0.042 -0.097)
- Lab (D50)
- lab(76.72 17.41 -35.26)
- LCH (D50)
- lch(76.72 39.32 296.27)
- Display P3
- color(display-p3 0.7580 0.7081 0.9790)
- Linear sRGB
- color(srgb-linear 0.5520 0.4564 1.0000)
Gamut: sRGB and Display P3
#C4B4FF is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.106 and Display P3 reaches 0.116; this color uses 100% of the sRGB chroma available.
CSS snippets
.element {
color: #c4b4ff;
color: rgb(196 180 255);
color: hsl(253 100% 85%);
color: oklch(0.810 0.106 293.7);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.810 0.106 293.7);
}
/* arbitrary values */
class="text-[#c4b4ff] bg-[oklch(0.810_0.106_293.7)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.7580 0.7081 0.9790); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #c4b4ff calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- v3 violet-300#C4B5FD
- v3 purple-300#D8B4FE
- purple-300#DAB2FF
- v3 indigo-300#A5B4FC
- indigo-300#A3B3FF
- plum#DDA0DD
- v3 fuchsia-300#F0ABFC
- v3 blue-300#93C5FD
Lighter and darker, same hue and chroma
- #D7C7FF · oklch(0.870 0.106 293.7) · ΔL +0.06
- #B1A1EB · oklch(0.750 0.106 293.7) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?