HEX in OKLCH: #FB2C36
Auch bekannt als: Tailwind red-500
Ergebnis
#FB2C36 → oklch(0.638 0.237 25.4)
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. sRGB → linear
R: 251/255 = 0.98431 → 0.964686 (((x + 0.055) / 1.055)^2.4) G: 44/255 = 0.17255 → 0.025187 (((x + 0.055) / 1.055)^2.4) B: 54/255 = 0.21176 → 0.036889 (((x + 0.055) / 1.055)^2.4)
2. linear sRGB → LMS
l = 0.4122·R + 0.5363·G + 0.0514·B = 0.413071 m = 0.2119·R + 0.6807·G + 0.1074·B = 0.225527 s = 0.0883·R + 0.2817·G + 0.6300·B = 0.115519
3. cube root
l′ = ∛0.413071 = 0.744746 m′ = ∛0.225527 = 0.608695 s′ = ∛0.115519 = 0.487025
4. LMS′ → Oklab
L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.63782 a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = 0.21429 b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = 0.10192
5. Oklab → OKLCH
C = √(a² + b²) = 0.23729 H = atan2(b, a) = 25.436° L = 0.63782
6. OKLCH
oklch(0.63782 0.23729 25.436) rounded: oklch(0.638 0.237 25.4)
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