HSL in HEX: #EE82EE
Auch bekannt als: CSS violet
Ergebnis
hsl(300.00 76.06% 72.16%) → #EE82EE
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #ee82ee. 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 = 300.00°, S = 76.06%, L = 72.16%
2. C
C = (1 − |2L − 1|) × S = 0.42350
3. X
X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.42350 (H / 60° = 5.0000, sector 5)
4. m
m = L − C / 2 = 0.50985
5. (R′, G′, B′) + m
(R′, G′, B′) = (0.42350, 0.00000, 0.42350) R = round((0.42350 + 0.50985) × 255) = 238 G = round((0.00000 + 0.50985) × 255) = 130 B = round((0.42350 + 0.50985) × 255) = 238
6. RGB → HEX
#EE82EE
Alle Formate
- HEX
- #ee82ee
- RGB
- rgb(238 130 238)
- RGB (legacy)
- rgb(238, 130, 238)
- HSL
- hsl(300.00 76.06% 72.16%) → hsl(300 76% 72%)
- HWB
- hwb(300 51% 7%)
- OKLCH
- oklch(0.762 0.186 327.2) · oklch(76.2% 0.186 327.2)
- OKLab
- oklab(0.762 0.156 -0.101)
- Lab (D50)
- lab(69.62 53.29 -36.54)
- LCH (D50)
- lch(69.62 64.62 325.57)
- Display P3
- color(display-p3 0.8771 0.5313 0.9109)
- Linear sRGB
- color(srgb-linear 0.8550 0.2232 0.8550)
Gamut: sRGB und Display P3
#EE82EE 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.241, Display P3 von 0.266; diese Farbe nutzt 77 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #ee82ee;
color: rgb(238 130 238);
color: hsl(300 76% 72%);
color: oklch(0.762 0.186 327.2);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.762 0.186 327.2);
}
/* arbitrary values */
class="text-[#ee82ee] bg-[oklch(0.762_0.186_327.2)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.8771 0.5313 0.9109); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #ee82ee calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- v3 fuchsia-400#E879F9
- fuchsia-400#ED6AFF
- orchid#DA70D6
- v3 purple-400#C084FC
- v3 pink-400#F472B6
- plum#DDA0DD
- fuchsia-300#F4A8FF
- purple-400#C27AFF
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #FF95FF · oklch(0.822 0.186 327.2) · ΔL +0.06
- #DA6FDA · oklch(0.702 0.186 327.2) · ΔL −0.06