HSL in HEX: #A3004C
Auch bekannt als: Tailwind pink-800
Ergebnis
hsl(332.02 100.00% 31.96%) → #A3004C
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #a3004c. 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 = 332.02°, S = 100.00%, L = 31.96%
2. C
C = (1 − |2L − 1|) × S = 0.63920
3. X
X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.29808 (H / 60° = 5.5337, sector 5)
4. m
m = L − C / 2 = 0.00000
5. (R′, G′, B′) + m
(R′, G′, B′) = (0.63920, 0.00000, 0.29808) R = round((0.63920 + 0.00000) × 255) = 163 G = round((0.00000 + 0.00000) × 255) = 0 B = round((0.29808 + 0.00000) × 255) = 76
6. RGB → HEX
#A3004C
Alle Formate
- HEX
- #a3004c
- RGB
- rgb(163 0 76)
- RGB (legacy)
- rgb(163, 0, 76)
- HSL
- hsl(332.02 100.00% 31.96%) → hsl(332 100% 32%)
- HWB
- hwb(332 0% 36%)
- OKLCH
- oklch(0.461 0.185 4.1) · oklch(46.1% 0.185 4.1)
- OKLab
- oklab(0.461 0.185 0.013)
- Lab (D50)
- lab(35.18 59.80 6.31)
- LCH (D50)
- lch(35.18 60.13 6.03)
- Display P3
- color(display-p3 0.5849 0.1130 0.2976)
- Linear sRGB
- color(srgb-linear 0.3663 0.0000 0.0723)
Gamut: sRGB und Display P3
#A3004C 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.185, Display P3 von 0.209; diese Farbe nutzt 100 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #a3004c;
color: rgb(163 0 76);
color: hsl(332 100% 32%);
color: oklch(0.461 0.185 4.1);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.461 0.185 4.1);
}
/* arbitrary values */
class="text-[#a3004c] bg-[oklch(0.461_0.185_4.1)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.5849 0.1130 0.2976); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #a3004c calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- v3 pink-800#9D174D
- v3 rose-800#9F1239
- rose-800#A50036
- rose-900#8B0836
- pink-900#861043
- v3 rose-900#881337
- v3 pink-700#BE185D
- v3 pink-900#831843
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #B8245D · oklch(0.521 0.185 4.1) · ΔL +0.06
- #8E003C · oklch(0.401 0.185 4.1) · ΔL −0.06