HEX in HSL: #C10007
Auch bekannt als: Tailwind red-700
Ergebnis
#C10007 → hsl(358 100% 38%)
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #c10007. 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.7569 G = 0.0000 B = 0.0275
2. max, min, Δ
max = 0.7569 min = 0.0000 Δ = max − min = 0.7569
3. L
L = (max + min) / 2 = 0.3784 = 37.84%
4. S
S = Δ / (1 − |2L − 1|) = 1.0000 = 100.00%
5. H
max is R → H = 60° × (((G − B) / Δ) mod 6) = 60° × (((0.0000 − 0.0275) / 0.7569) mod 6) = 357.82°
6. HSL
hsl(357.82 100.00% 37.84%)
Alle Formate
- HEX
- #c10007
- RGB
- rgb(193 0 7)
- RGB (legacy)
- rgb(193, 0, 7)
- HSL
- hsl(357.82 100.00% 37.84%) → hsl(358 100% 38%)
- HWB
- hwb(358 0% 24%)
- OKLCH
- oklch(0.509 0.209 28.5) · oklch(50.9% 0.209 28.5)
- OKLab
- oklab(0.509 0.183 0.100)
- Lab (D50)
- lab(41.02 65.57 54.05)
- LCH (D50)
- lch(41.02 84.98 39.50)
- Display P3
- color(display-p3 0.6934 0.1415 0.1064)
- Linear sRGB
- color(srgb-linear 0.5333 0.0000 0.0021)
Gamut: sRGB und Display P3
#C10007 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.209, Display P3 von 0.235; diese Farbe nutzt 100 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #c10007;
color: rgb(193 0 7);
color: hsl(358 100% 38%);
color: oklch(0.509 0.209 28.5);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.509 0.209 28.5);
}
/* arbitrary values */
class="text-[#c10007] bg-[oklch(0.509_0.209_28.5)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.6934 0.1415 0.1064); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #c10007 calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- v3 red-700#B91C1C
- firebrick#B22222
- rose-700#C70036
- v3 rose-700#BE123C
- orange-700#CA3500
- brown#A52A2A
- v3 orange-700#C2410C
- v3 red-600#DC2626
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #D72A22 · oklch(0.569 0.209 28.5) · ΔL +0.06
- #AB0000 · oklch(0.449 0.209 28.5) · ΔL −0.06