HEX naar HSL: #9810FA
Ook bekend als: Tailwind purple-600
Resultaat
#9810FA → hsl(275 96% 52%)
Waarden staan op volle precisie, dus terugrekenen geeft exact #9810fa. 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.5961 G = 0.0627 B = 0.9804
2. max, min, Δ
max = 0.9804 min = 0.0627 Δ = max − min = 0.9176
3. L
L = (max + min) / 2 = 0.5216 = 52.16%
4. S
S = Δ / (1 − |2L − 1|) = 0.9590 = 95.90%
5. H
max is B → H = 60° × ((R − G) / Δ + 4) = 60° × ((0.5961 − 0.0627) / 0.9176 + 4) = 274.87°
6. HSL
hsl(274.87 95.90% 52.16%)
Alle formaten
- HEX
- #9810fa
- RGB
- rgb(152 16 250)
- RGB (legacy)
- rgb(152, 16, 250)
- HSL
- hsl(274.87 95.90% 52.16%) → hsl(275 96% 52%)
- HWB
- hwb(275 6% 2%)
- OKLCH
- oklch(0.558 0.288 302.3) · oklch(55.8% 0.288 302.3)
- OKLab
- oklab(0.558 0.154 -0.243)
- Lab (D50)
- lab(42.99 75.11 -86.49)
- LCH (D50)
- lch(42.99 114.55 310.97)
- Display P3
- color(display-p3 0.5460 0.1305 0.9435)
- Linear sRGB
- color(srgb-linear 0.3140 0.0052 0.9560)
Gamut: sRGB en Display P3
#9810FA is een hexkleur en ligt dus binnen sRGB en daarmee binnen Display P3. Bij deze helderheid en tint haalt sRGB een chroma van 0.294 en Display P3 van 0.307; deze kleur gebruikt 98% van de beschikbare sRGB-chroma.
CSS-snippets
.element {
color: #9810fa;
color: rgb(152 16 250);
color: hsl(275 96% 52%);
color: oklch(0.558 0.288 302.3);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.558 0.288 302.3);
}
/* arbitrary values */
class="text-[#9810fa] bg-[oklch(0.558_0.288_302.3)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.5460 0.1305 0.9435); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #9810fa calc(l - 0.1) c h); }Kleuren in de buurt
Dichtstbijzijnde kleuren in de Tailwind- en CSS-paletten (OKLab-afstand).
- v3 purple-600#9333EA
- blueviolet#8A2BE2
- violet-600#7F22FE
- v3 violet-600#7C3AED
- darkviolet#9400D3
- purple-700#8200DB
- purple-500#AD46FF
- violet-500#8E51FF
Lichter en donkerder, dezelfde tint en chroma
- #AA36FF · oklch(0.618 0.288 302.3) · ΔL +0.06
- #8600E5 · oklch(0.498 0.288 302.3) · ΔL −0.06