HEX in HSL: #5B21B6
Auch bekannt als: Tailwind v3 violet-800
Ergebnis
#5B21B6 → hsl(263 69% 42%)
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #5b21b6. 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.3569 G = 0.1294 B = 0.7137
2. max, min, Δ
max = 0.7137 min = 0.1294 Δ = max − min = 0.5843
3. L
L = (max + min) / 2 = 0.4216 = 42.16%
4. S
S = Δ / (1 − |2L − 1|) = 0.6930 = 69.30%
5. H
max is B → H = 60° × ((R − G) / Δ + 4) = 60° × ((0.3569 − 0.1294) / 0.5843 + 4) = 263.36°
6. HSL
hsl(263.36 69.30% 42.16%)
Alle Formate
- HEX
- #5b21b6
- RGB
- rgb(91 33 182)
- RGB (legacy)
- rgb(91, 33, 182)
- HSL
- hsl(263.36 69.30% 42.16%) → hsl(263 69% 42%)
- HWB
- hwb(263 13% 29%)
- OKLCH
- oklch(0.432 0.211 292.8) · oklch(43.2% 0.211 292.8)
- OKLab
- oklab(0.432 0.081 -0.194)
- Lab (D50)
- lab(30.04 50.06 -69.00)
- LCH (D50)
- lch(30.04 85.24 305.96)
- Display P3
- color(display-p3 0.3296 0.1436 0.6864)
- Linear sRGB
- color(srgb-linear 0.1046 0.0152 0.4678)
Gamut: sRGB und Display P3
#5B21B6 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.240, Display P3 von 0.248; diese Farbe nutzt 88 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #5b21b6;
color: rgb(91 33 182);
color: hsl(263 69% 42%);
color: oklch(0.432 0.211 292.8);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.432 0.211 292.8);
}
/* arbitrary values */
class="text-[#5b21b6] bg-[oklch(0.432_0.211_292.8)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.3296 0.1436 0.6864); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #5b21b6 calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- violet-800#5D0EC0
- v3 purple-800#6B21A8
- purple-800#6E11B0
- violet-900#4D179A
- rebeccapurple#663399
- v3 violet-900#4C1D95
- v3 indigo-700#4338CA
- indigo-800#372AAC
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #6B38CA · oklch(0.492 0.211 292.8) · ΔL +0.06
- #4C00A2 · oklch(0.372 0.211 292.8) · ΔL −0.06