HSL in HEX: #E12AFB
Auch bekannt als: Tailwind fuchsia-500
Ergebnis
hsl(292.54 96.31% 57.45%) → #E12AFB
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #e12afb. 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 = 292.54°, S = 96.31%, L = 57.45%
2. C
C = (1 − |2L − 1|) × S = 0.81960
3. X
X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.71769 (H / 60° = 4.8757, sector 4)
4. m
m = L − C / 2 = 0.16470
5. (R′, G′, B′) + m
(R′, G′, B′) = (0.71769, 0.00000, 0.81960) R = round((0.71769 + 0.16470) × 255) = 225 G = round((0.00000 + 0.16470) × 255) = 42 B = round((0.81960 + 0.16470) × 255) = 251
6. RGB → HEX
#E12AFB
Alle Formate
- HEX
- #e12afb
- RGB
- rgb(225 42 251)
- RGB (legacy)
- rgb(225, 42, 251)
- HSL
- hsl(292.54 96.31% 57.45%) → hsl(293 96% 57%)
- HWB
- hwb(293 16% 2%)
- OKLCH
- oklch(0.666 0.295 322.1) · oklch(66.6% 0.295 322.1)
- OKLab
- oklab(0.666 0.233 -0.181)
- Lab (D50)
- lab(56.35 83.11 -64.74)
- LCH (D50)
- lch(56.35 105.35 322.08)
- Display P3
- color(display-p3 0.8114 0.2411 0.9514)
- Linear sRGB
- color(srgb-linear 0.7529 0.0232 0.9647)
Gamut: sRGB und Display P3
#E12AFB 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.307, Display P3 von 0.335; diese Farbe nutzt 96 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #e12afb;
color: rgb(225 42 251);
color: hsl(293 96% 57%);
color: oklch(0.666 0.295 322.1);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.666 0.295 322.1);
}
/* arbitrary values */
class="text-[#e12afb] bg-[oklch(0.666_0.295_322.1)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.8114 0.2411 0.9514); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #e12afb calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- v3 fuchsia-500#D946EF
- fuchsia#FF00FF
- fuchsia-600#C800DE
- v3 fuchsia-600#C026D3
- fuchsia-400#ED6AFF
- purple-500#AD46FF
- mediumorchid#BA55D3
- v3 purple-500#A855F7
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #F647FF · oklch(0.726 0.295 322.1) · ΔL +0.06
- #CC00E6 · oklch(0.606 0.295 322.1) · ΔL −0.06