HEX in HSL: #9333EA
Auch bekannt als: Tailwind v3 purple-600
Ergebnis
#9333EA → hsl(271 81% 56%)
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #9333ea. Die gerundete Form fügst du üblicherweise in CSS ein.
Rechenweg Schritt für Schritt
Jede Zahl wird aus der Eingabe berechnet, nichts ist nachgeschlagen.
1. RGB ÷ 255
R = 0.5765 G = 0.2000 B = 0.9176
2. max, min, Δ
max = 0.9176 min = 0.2000 Δ = max − min = 0.7176
3. L
L = (max + min) / 2 = 0.5588 = 55.88%
4. S
S = Δ / (1 − |2L − 1|) = 0.8133 = 81.33%
5. H
max is B → H = 60° × ((R − G) / Δ + 4) = 60° × ((0.5765 − 0.2000) / 0.7176 + 4) = 271.48°
6. HSL
hsl(271.48 81.33% 55.88%)
Alle Formate
- HEX
- #9333ea
- RGB
- rgb(147 51 234)
- RGB (legacy)
- rgb(147, 51, 234)
- HSL
- hsl(271.48 81.33% 55.88%) → hsl(271 81% 56%)
- HWB
- hwb(271 20% 8%)
- OKLCH
- oklch(0.558 0.252 302.3) · oklch(55.8% 0.252 302.3)
- OKLab
- oklab(0.558 0.135 -0.213)
- Lab (D50)
- lab(44.02 63.35 -75.85)
- LCH (D50)
- lch(44.02 98.82 309.87)
- Display P3
- color(display-p3 0.5330 0.2257 0.8842)
- Linear sRGB
- color(srgb-linear 0.2918 0.0331 0.8228)
Gamut: sRGB und Display P3
#9333EA ist eine Hex-Farbe und liegt damit in sRGB und folglich in Display P3. Bei dieser Helligkeit und diesem Farbton erreicht sRGB eine Chroma von 0.294, Display P3 von 0.307; diese Farbe nutzt 86 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #9333ea;
color: rgb(147 51 234);
color: hsl(271 81% 56%);
color: oklch(0.558 0.252 302.3);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.558 0.252 302.3);
}
/* arbitrary values */
class="text-[#9333ea] bg-[oklch(0.558_0.252_302.3)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.5330 0.2257 0.8842); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #9333ea calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- blueviolet#8A2BE2
- purple-600#9810FA
- v3 violet-600#7C3AED
- darkorchid#9932CC
- darkviolet#9400D3
- violet-600#7F22FE
- violet-500#8E51FF
- purple-700#8200DB
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #A54BFF · oklch(0.618 0.252 302.3) · ΔL +0.06
- #8113D5 · oklch(0.498 0.252 302.3) · ΔL −0.06