HEX naar HSL: #4A044E
Ook bekend als: Tailwind v3 fuchsia-950
Resultaat
#4A044E → hsl(297 90% 16%)
Waarden staan op volle precisie, dus terugrekenen geeft exact #4a044e. De afgeronde vorm plak je gewoonlijk in CSS.
Stap-voor-stap berekening
Elk getal wordt uit de invoer berekend, er wordt niets opgezocht.
1. RGB ÷ 255
R = 0.2902 G = 0.0157 B = 0.3059
2. max, min, Δ
max = 0.3059 min = 0.0157 Δ = max − min = 0.2902
3. L
L = (max + min) / 2 = 0.1608 = 16.08%
4. S
S = Δ / (1 − |2L − 1|) = 0.9024 = 90.24%
5. H
max is B → H = 60° × ((R − G) / Δ + 4) = 60° × ((0.2902 − 0.0157) / 0.2902 + 4) = 296.76°
6. HSL
hsl(296.76 90.24% 16.08%)
Alle formaten
- HEX
- #4a044e
- RGB
- rgb(74 4 78)
- RGB (legacy)
- rgb(74, 4, 78)
- HSL
- hsl(296.76 90.24% 16.08%) → hsl(297 90% 16%)
- HWB
- hwb(297 2% 69%)
- OKLCH
- oklch(0.293 0.131 325.7) · oklch(29.3% 0.131 325.7)
- OKLab
- oklab(0.293 0.108 -0.074)
- Lab (D50)
- lab(15.86 37.50 -26.39)
- LCH (D50)
- lch(15.86 45.85 324.86)
- Display P3
- color(display-p3 0.2637 0.0444 0.2947)
- Linear sRGB
- color(srgb-linear 0.0685 0.0012 0.0762)
Gamut: sRGB en Display P3
#4A044E is een hexkleur en ligt dus binnen sRGB en daarmee binnen Display P3. Bij deze helderheid en tint haalt sRGB een chroma van 0.137 en Display P3 van 0.149; deze kleur gebruikt 96% van de beschikbare sRGB-chroma.
CSS-snippets
.element {
color: #4a044e;
color: rgb(74 4 78);
color: hsl(297 90% 16%);
color: oklch(0.293 0.131 325.7);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.293 0.131 325.7);
}
/* arbitrary values */
class="text-[#4a044e] bg-[oklch(0.293_0.131_325.7)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.2637 0.0444 0.2947); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #4a044e calc(l - 0.1) c h); }Kleuren in de buurt
Dichtstbijzijnde kleuren in de Tailwind- en CSS-paletten (OKLab-afstand).
- fuchsia-950#4B004F
- v3 purple-950#3B0764
- purple-950#3C0366
- v3 violet-950#2E1065
- pink-950#510424
- v3 pink-950#500724
- violet-950#2F0D68
- indigo#4B0082
Lichter en donkerder, dezelfde tint en chroma
- #5B1A5F · oklch(0.353 0.131 325.7) · ΔL +0.06
- #39003D · oklch(0.233 0.131 325.7) · ΔL −0.06