HSL in HEX: #7008E7
Auch bekannt als: Tailwind violet-700
Ergebnis
hsl(267.98 93.31% 46.86%) → #7008E7
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #7008e7. 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. input
H = 267.98°, S = 93.31%, L = 46.86%
2. C
C = (1 − |2L − 1|) × S = 0.87450
3. X
X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.40781 (H / 60° = 4.4663, sector 4)
4. m
m = L − C / 2 = 0.03135
5. (R′, G′, B′) + m
(R′, G′, B′) = (0.40781, 0.00000, 0.87450) R = round((0.40781 + 0.03135) × 255) = 112 G = round((0.00000 + 0.03135) × 255) = 8 B = round((0.87450 + 0.03135) × 255) = 231
6. RGB → HEX
#7008E7
Alle Formate
- HEX
- #7008e7
- RGB
- rgb(112 8 231)
- RGB (legacy)
- rgb(112, 8, 231)
- HSL
- hsl(267.98 93.31% 46.86%) → hsl(268 93% 47%)
- HWB
- hwb(268 3% 9%)
- OKLCH
- oklch(0.491 0.270 292.6) · oklch(49.1% 0.270 292.6)
- OKLab
- oklab(0.491 0.104 -0.249)
- Lab (D50)
- lab(35.25 67.96 -88.76)
- LCH (D50)
- lch(35.25 111.79 307.44)
- Display P3
- color(display-p3 0.4012 0.0841 0.8706)
- Linear sRGB
- color(srgb-linear 0.1620 0.0024 0.7991)
Gamut: sRGB und Display P3
#7008E7 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.273, Display P3 von 0.281; diese Farbe nutzt 99 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #7008e7;
color: rgb(112 8 231);
color: hsl(268 93% 47%);
color: oklch(0.491 0.270 292.6);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.491 0.270 292.6);
}
/* arbitrary values */
class="text-[#7008e7] bg-[oklch(0.491_0.270_292.6)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.4012 0.0841 0.8706); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #7008e7 calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- v3 violet-700#6D28D9
- purple-700#8200DB
- violet-600#7F22FE
- v3 purple-700#7E22CE
- v3 violet-600#7C3AED
- blueviolet#8A2BE2
- violet-800#5D0EC0
- indigo-600#4F39F6
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #8031FC · oklch(0.551 0.270 292.6) · ΔL +0.06
- #6100D2 · oklch(0.431 0.270 292.6) · ΔL −0.06