HEX in OKLCH: #164E63
Auch bekannt als: Tailwind v3 cyan-900
Ergebnis
#164E63 → oklch(0.398 0.066 227.4)
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #164e63. 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: 22/255 = 0.08627 → 0.008023 (((x + 0.055) / 1.055)^2.4) G: 78/255 = 0.30588 → 0.076185 (((x + 0.055) / 1.055)^2.4) B: 99/255 = 0.38824 → 0.124772 (((x + 0.055) / 1.055)^2.4)
2. linear sRGB → LMS
l = 0.4122·R + 0.5363·G + 0.0514·B = 0.050587 m = 0.2119·R + 0.6807·G + 0.1074·B = 0.066960 s = 0.0883·R + 0.2817·G + 0.6300·B = 0.100775
3. cube root
l′ = ∛0.050587 = 0.369839 m′ = ∛0.066960 = 0.406073 s′ = ∛0.100775 = 0.465355
4. LMS′ → Oklab
L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.39821 a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = -0.04496 b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = -0.04888
5. Oklab → OKLCH
C = √(a² + b²) = 0.06641 H = atan2(b, a) = 227.392° L = 0.39821
6. OKLCH
oklch(0.39821 0.06641 227.392) rounded: oklch(0.398 0.066 227.4)
Alle Formate
- HEX
- #164e63
- RGB
- rgb(22 78 99)
- RGB (legacy)
- rgb(22, 78, 99)
- HSL
- hsl(196.36 63.64% 23.73%) → hsl(196 64% 24%)
- HWB
- hwb(196 9% 61%)
- OKLCH
- oklch(0.398 0.066 227.4) · oklch(39.8% 0.066 227.4)
- OKLab
- oklab(0.398 -0.045 -0.049)
- Lab (D50)
- lab(30.39 -12.66 -17.86)
- LCH (D50)
- lch(30.39 21.89 234.67)
- Display P3
- color(display-p3 0.1522 0.3014 0.3800)
- Linear sRGB
- color(srgb-linear 0.0080 0.0762 0.1248)
Gamut: sRGB und Display P3
#164E63 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.077, Display P3 von 0.102; diese Farbe nutzt 86 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #164e63;
color: rgb(22 78 99);
color: hsl(196 64% 24%);
color: oklch(0.398 0.066 227.4);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.398 0.066 227.4);
}
/* arbitrary values */
class="text-[#164e63] bg-[oklch(0.398_0.066_227.4)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.1522 0.3014 0.3800); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #164e63 calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- cyan-900#104E64
- v3 sky-900#0C4A6E
- sky-900#024A70
- darkslategray#2F4F4F
- v3 teal-900#134E4A
- slate-700#314158
- teal-900#0B4F4A
- v3 slate-700#334155
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #295F74 · oklch(0.458 0.066 227.4) · ΔL +0.06
- #003E52 · oklch(0.338 0.066 227.4) · ΔL −0.06