HSL in HEX: #BE123C
Auch bekannt als: Tailwind v3 rose-700
Ergebnis
hsl(345.35 82.69% 40.78%) → #BE123C
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #be123c. 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 = 345.35°, S = 82.69%, L = 40.78%
2. C
C = (1 − |2L − 1|) × S = 0.67442
3. X
X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.16467 (H / 60° = 5.7558, sector 5)
4. m
m = L − C / 2 = 0.07059
5. (R′, G′, B′) + m
(R′, G′, B′) = (0.67442, 0.00000, 0.16467) R = round((0.67442 + 0.07059) × 255) = 190 G = round((0.00000 + 0.07059) × 255) = 18 B = round((0.16467 + 0.07059) × 255) = 60
6. RGB → HEX
#BE123C
Alle Formate
- HEX
- #be123c
- RGB
- rgb(190 18 60)
- RGB (legacy)
- rgb(190, 18, 60)
- HSL
- hsl(345.35 82.69% 40.78%) → hsl(345 83% 41%)
- HWB
- hwb(345 7% 25%)
- OKLCH
- oklch(0.514 0.198 16.9) · oklch(51.4% 0.198 16.9)
- OKLab
- oklab(0.514 0.189 0.058)
- Lab (D50)
- lab(41.48 63.83 26.16)
- LCH (D50)
- lch(41.48 68.98 22.28)
- Display P3
- color(display-p3 0.6833 0.1639 0.2487)
- Linear sRGB
- color(srgb-linear 0.5149 0.0060 0.0452)
Gamut: sRGB und Display P3
#BE123C 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.206, Display P3 von 0.232; diese Farbe nutzt 96 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #be123c;
color: rgb(190 18 60);
color: hsl(345 83% 41%);
color: oklch(0.514 0.198 16.9);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.514 0.198 16.9);
}
/* arbitrary values */
class="text-[#be123c] bg-[oklch(0.514_0.198_16.9)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.6833 0.1639 0.2487); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #be123c calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- rose-700#C70036
- v3 red-700#B91C1C
- firebrick#B22222
- red-700#C10007
- v3 pink-700#BE185D
- pink-700#C6005C
- brown#A52A2A
- rose-800#A50036
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #D4304D · oklch(0.574 0.198 16.9) · ΔL +0.06
- #A9002C · oklch(0.454 0.198 16.9) · ΔL −0.06