OKLCH in HEX: #5F9EA0
Auch bekannt als: CSS cadetblue
Ergebnis
oklch(0.65768 0.06501 198.298) → #5F9EA0
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #5f9ea0. 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
oklch(0.65768 0.06501 198.298)
2. OKLCH → Oklab
a = C·cos H = -0.06172 b = C·sin H = -0.02041
3. Oklab → LMS′
l′ = L + 0.3963·a + 0.2158·b = 0.628812 m′ = L − 0.1056·a − 0.0639·b = 0.665499 s′ = L − 0.0895·a − 1.2915·b = 0.689563
4. cube
l = 0.628812³ = 0.248635 m = 0.665499³ = 0.294742 s = 0.689563³ = 0.327885
5. LMS → linear sRGB
R = 4.0767·l − 3.3077·m + 0.2310·s = 0.114433 G = −1.2684·l + 2.6098·m − 0.3413·s = 0.341913 B = −0.0042·l − 0.7034·m + 1.7076·s = 0.351532
6. linear → sRGB, × 255
R = 0.37254 × 255 = 95.00 → 95 G = 0.61961 × 255 = 158.00 → 158 B = 0.62745 × 255 = 160.00 → 160
7. RGB → HEX
#5F9EA0
Alle Formate
- HEX
- #5f9ea0
- RGB
- rgb(95 158 160)
- RGB (legacy)
- rgb(95, 158, 160)
- HSL
- hsl(181.85 25.49% 50.00%) → hsl(182 25% 50%)
- HWB
- hwb(182 37% 37%)
- OKLCH
- oklch(0.658 0.065 198.3) · oklch(65.8% 0.065 198.3)
- OKLab
- oklab(0.658 -0.062 -0.020)
- Lab (D50)
- lab(60.95 -20.74 -7.79)
- LCH (D50)
- lch(60.95 22.16 200.59)
- Display P3
- color(display-p3 0.4299 0.6134 0.6236)
- Linear sRGB
- color(srgb-linear 0.1144 0.3419 0.3515)
Gamut: sRGB und Display P3
#5F9EA0 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.112, Display P3 von 0.150; diese Farbe nutzt 58 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #5f9ea0;
color: rgb(95 158 160);
color: hsl(182 25% 50%);
color: oklch(0.658 0.065 198.3);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.658 0.065 198.3);
}
/* arbitrary values */
class="text-[#5f9ea0] bg-[oklch(0.658_0.065_198.3)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.4299 0.6134 0.6236); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #5f9ea0 calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- lightseagreen#20B2AA
- lightslategray#778899
- teal-600#009689
- v3 teal-600#0D9488
- slate-400#90A1B9
- v3 cyan-600#0891B2
- gray-400#99A1AF
- v3 slate-400#94A3B8
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #71B1B3 · oklch(0.718 0.065 198.3) · ΔL +0.06
- #4D8C8E · oklch(0.598 0.065 198.3) · ΔL −0.06