HEX in HSL: #364153
Auch bekannt als: Tailwind gray-700
Ergebnis
#364153 → hsl(217 21% 27%)
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #364153. 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.2118 G = 0.2549 B = 0.3255
2. max, min, Δ
max = 0.3255 min = 0.2118 Δ = max − min = 0.1137
3. L
L = (max + min) / 2 = 0.2686 = 26.86%
4. S
S = Δ / (1 − |2L − 1|) = 0.2117 = 21.17%
5. H
max is B → H = 60° × ((R − G) / Δ + 4) = 60° × ((0.2118 − 0.2549) / 0.1137 + 4) = 217.24°
6. HSL
hsl(217.24 21.17% 26.86%)
Alle Formate
- HEX
- #364153
- RGB
- rgb(54 65 83)
- RGB (legacy)
- rgb(54, 65, 83)
- HSL
- hsl(217.24 21.17% 26.86%) → hsl(217 21% 27%)
- HWB
- hwb(217 21% 67%)
- OKLCH
- oklch(0.373 0.034 260.2) · oklch(37.3% 0.034 260.2)
- OKLab
- oklab(0.373 -0.006 -0.034)
- Lab (D50)
- lab(27.11 -0.87 -12.45)
- LCH (D50)
- lch(27.11 12.48 266.01)
- Display P3
- color(display-p3 0.2201 0.2536 0.3194)
- Linear sRGB
- color(srgb-linear 0.0369 0.0529 0.0865)
Gamut: sRGB und Display P3
#364153 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.154, Display P3 von 0.193; diese Farbe nutzt 22 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #364153;
color: rgb(54 65 83);
color: hsl(217 21% 27%);
color: oklch(0.373 0.034 260.2);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.373 0.034 260.2);
}
/* arbitrary values */
class="text-[#364153] bg-[oklch(0.373_0.034_260.2)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.2201 0.2536 0.3194); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #364153 calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- v3 gray-700#374151
- v3 slate-700#334155
- slate-700#314158
- zinc-700#3F3F46
- mist-700#394447
- neutral-700#404040
- mauve-700#463947
- v3 stone-700#44403C
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #465164 · oklch(0.433 0.034 260.2) · ΔL +0.06
- #273143 · oklch(0.313 0.034 260.2) · ΔL −0.06