HEX in HSL: #8A2BE2
Auch bekannt als: CSS blueviolet
Ergebnis
#8A2BE2 → hsl(271 76% 53%)
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #8a2be2. 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.5412 G = 0.1686 B = 0.8863
2. max, min, Δ
max = 0.8863 min = 0.1686 Δ = max − min = 0.7176
3. L
L = (max + min) / 2 = 0.5275 = 52.75%
4. S
S = Δ / (1 − |2L − 1|) = 0.7593 = 75.93%
5. H
max is B → H = 60° × ((R − G) / Δ + 4) = 60° × ((0.5412 − 0.1686) / 0.7176 + 4) = 271.15°
6. HSL
hsl(271.15 75.93% 52.75%)
Alle Formate
- HEX
- #8a2be2
- RGB
- rgb(138 43 226)
- RGB (legacy)
- rgb(138, 43, 226)
- HSL
- hsl(271.15 75.93% 52.75%) → hsl(271 76% 53%)
- HWB
- hwb(271 17% 11%)
- OKLCH
- oklch(0.534 0.250 301.4) · oklch(53.4% 0.250 301.4)
- OKLab
- oklab(0.534 0.130 -0.214)
- Lab (D50)
- lab(41.21 63.01 -75.96)
- LCH (D50)
- lch(41.21 98.69 309.68)
- Display P3
- color(display-p3 0.4992 0.1957 0.8535)
- Linear sRGB
- color(srgb-linear 0.2542 0.0242 0.7605)
Gamut: sRGB und Display P3
#8A2BE2 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.283, Display P3 von 0.295; diese Farbe nutzt 89 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #8a2be2;
color: rgb(138 43 226);
color: hsl(271 76% 53%);
color: oklch(0.534 0.250 301.4);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.534 0.250 301.4);
}
/* arbitrary values */
class="text-[#8a2be2] bg-[oklch(0.534_0.250_301.4)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.4992 0.1957 0.8535); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #8a2be2 calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- v3 purple-600#9333EA
- v3 violet-600#7C3AED
- purple-700#8200DB
- v3 purple-700#7E22CE
- darkviolet#9400D3
- purple-600#9810FA
- darkorchid#9932CC
- violet-600#7F22FE
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #9C44F7 · oklch(0.594 0.250 301.4) · ΔL +0.06
- #7901CD · oklch(0.474 0.250 301.4) · ΔL −0.06