HEX in HSL: #C71585
Auch bekannt als: CSS mediumvioletred
Ergebnis
#C71585 → hsl(322 81% 43%)
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #c71585. 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.7804 G = 0.0824 B = 0.5216
2. max, min, Δ
max = 0.7804 min = 0.0824 Δ = max − min = 0.6980
3. L
L = (max + min) / 2 = 0.4314 = 43.14%
4. S
S = Δ / (1 − |2L − 1|) = 0.8091 = 80.91%
5. H
max is R → H = 60° × (((G − B) / Δ) mod 6) = 60° × (((0.0824 − 0.5216) / 0.6980) mod 6) = 322.25°
6. HSL
hsl(322.25 80.91% 43.14%)
Alle Formate
- HEX
- #c71585
- RGB
- rgb(199 21 133)
- RGB (legacy)
- rgb(199, 21, 133)
- HSL
- hsl(322.25 80.91% 43.14%) → hsl(322 81% 43%)
- HWB
- hwb(322 8% 22%)
- OKLCH
- oklch(0.553 0.222 349.7) · oklch(55.3% 0.222 349.7)
- OKLab
- oklab(0.553 0.218 -0.040)
- Lab (D50)
- lab(45.17 69.57 -14.07)
- LCH (D50)
- lch(45.17 70.97 348.57)
- Display P3
- color(display-p3 0.7160 0.1763 0.5105)
- Linear sRGB
- color(srgb-linear 0.5711 0.0075 0.2346)
Gamut: sRGB und Display P3
#C71585 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.231, Display P3 von 0.259; diese Farbe nutzt 96 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #c71585;
color: rgb(199 21 133);
color: hsl(322 81% 43%);
color: oklch(0.553 0.222 349.7);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.553 0.222 349.7);
}
/* arbitrary values */
class="text-[#c71585] bg-[oklch(0.553_0.222_349.7)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.7160 0.1763 0.5105); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #c71585 calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- v3 pink-600#DB2777
- pink-700#C6005C
- v3 pink-700#BE185D
- pink-600#E60076
- v3 pink-500#EC4899
- pink-500#F6339A
- v3 fuchsia-700#A21CAF
- v3 rose-700#BE123C
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #DC3397 · oklch(0.613 0.222 349.7) · ΔL +0.06
- #B20073 · oklch(0.493 0.222 349.7) · ΔL −0.06