HEX in OKLCH: #364153
Auch bekannt als: Tailwind gray-700
Ergebnis
#364153 → oklch(0.373 0.034 260.2)
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. sRGB → linear
R: 54/255 = 0.21176 → 0.036889 (((x + 0.055) / 1.055)^2.4) G: 65/255 = 0.25490 → 0.052861 (((x + 0.055) / 1.055)^2.4) B: 83/255 = 0.32549 → 0.086500 (((x + 0.055) / 1.055)^2.4)
2. linear sRGB → LMS
l = 0.4122·R + 0.5363·G + 0.0514·B = 0.048008 m = 0.2119·R + 0.6807·G + 0.1074·B = 0.053089 s = 0.0883·R + 0.2817·G + 0.6300·B = 0.072643
3. cube root
l′ = ∛0.048008 = 0.363443 m′ = ∛0.053089 = 0.375839 s′ = ∛0.072643 = 0.417251
4. LMS′ → Oklab
L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.37306 a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = -0.00586 b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = -0.03381
5. Oklab → OKLCH
C = √(a² + b²) = 0.03431 H = atan2(b, a) = 260.169° L = 0.37306
6. OKLCH
oklch(0.37306 0.03431 260.169) rounded: oklch(0.373 0.034 260.2)
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