HEX in HSL: #FB2C36
Auch bekannt als: Tailwind red-500
Ergebnis
#FB2C36 → hsl(357 96% 58%)
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #fb2c36. 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.9843 G = 0.1725 B = 0.2118
2. max, min, Δ
max = 0.9843 min = 0.1725 Δ = max − min = 0.8118
3. L
L = (max + min) / 2 = 0.5784 = 57.84%
4. S
S = Δ / (1 − |2L − 1|) = 0.9628 = 96.28%
5. H
max is R → H = 60° × (((G − B) / Δ) mod 6) = 60° × (((0.1725 − 0.2118) / 0.8118) mod 6) = 357.10°
6. HSL
hsl(357.10 96.28% 57.84%)
Alle Formate
- HEX
- #fb2c36
- RGB
- rgb(251 44 54)
- RGB (legacy)
- rgb(251, 44, 54)
- HSL
- hsl(357.10 96.28% 57.84%) → hsl(357 96% 58%)
- HWB
- hwb(357 17% 2%)
- OKLCH
- oklch(0.638 0.237 25.4) · oklch(63.8% 0.237 25.4)
- OKLab
- oklab(0.638 0.214 0.102)
- Lab (D50)
- lab(55.58 75.14 49.16)
- LCH (D50)
- lch(55.58 89.79 33.19)
- Display P3
- color(display-p3 0.9053 0.2633 0.2525)
- Linear sRGB
- color(srgb-linear 0.9647 0.0252 0.0369)
Gamut: sRGB und Display P3
#FB2C36 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.248, Display P3 von 0.292; diese Farbe nutzt 96 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #fb2c36;
color: rgb(251 44 54);
color: hsl(357 96% 58%);
color: oklch(0.638 0.237 25.4);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.638 0.237 25.4);
}
/* arbitrary values */
class="text-[#fb2c36] bg-[oklch(0.638_0.237_25.4)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.9053 0.2633 0.2525); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #fb2c36 calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- red#FF0000
- v3 red-500#EF4444
- rose-500#FF2056
- v3 rose-500#F43F5E
- orangered#FF4500
- rose-600#EC003F
- orange-600#F54900
- red-600#E7000B
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #FF4749 · oklch(0.698 0.237 25.4) · ΔL +0.06
- #E50021 · oklch(0.578 0.237 25.4) · ΔL −0.06