HEX in OKLCH: #002C22
Auch bekannt als: Tailwind emerald-950
Ergebnis
#002C22 → oklch(0.261 0.050 173.1)
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #002c22. 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: 0/255 = 0.00000 → 0.000000 (÷ 12.92) G: 44/255 = 0.17255 → 0.025187 (((x + 0.055) / 1.055)^2.4) B: 34/255 = 0.13333 → 0.015996 (((x + 0.055) / 1.055)^2.4)
2. linear sRGB → LMS
l = 0.4122·R + 0.5363·G + 0.0514·B = 0.014331 m = 0.2119·R + 0.6807·G + 0.1074·B = 0.018863 s = 0.0883·R + 0.2817·G + 0.6300·B = 0.017173
3. cube root
l′ = ∛0.014331 = 0.242902 m′ = ∛0.018863 = 0.266196 s′ = ∛0.017173 = 0.257997
4. LMS′ → Oklab
L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.26133 a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = -0.04977 b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = 0.00603
5. Oklab → OKLCH
C = √(a² + b²) = 0.05013 H = atan2(b, a) = 173.096° L = 0.26133
6. OKLCH
oklch(0.26133 0.05013 173.096) rounded: oklch(0.261 0.050 173.1)
Alle Formate
- HEX
- #002c22
- RGB
- rgb(0 44 34)
- RGB (legacy)
- rgb(0, 44, 34)
- HSL
- hsl(166.36 100.00% 8.63%) → hsl(166 100% 9%)
- HWB
- hwb(166 0% 83%)
- OKLCH
- oklch(0.261 0.050 173.1) · oklch(26.1% 0.050 173.1)
- OKLab
- oklab(0.261 -0.050 0.006)
- Lab (D50)
- lab(14.97 -17.65 2.16)
- LCH (D50)
- lch(14.97 17.78 173.02)
- Display P3
- color(display-p3 0.0557 0.1694 0.1352)
- Linear sRGB
- color(srgb-linear 0.0000 0.0252 0.0160)
Gamut: sRGB und Display P3
#002C22 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.050, Display P3 von 0.068; diese Farbe nutzt 100 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #002c22;
color: rgb(0 44 34);
color: hsl(166 100% 9%);
color: oklch(0.261 0.050 173.1);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.261 0.050 173.1);
}
/* arbitrary values */
class="text-[#002c22] bg-[oklch(0.261_0.050_173.1)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.0557 0.1694 0.1352); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #002c22 calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- v3 emerald-950#022C22
- teal-950#022F2E
- v3 teal-950#042F2E
- v3 green-950#052E16
- green-950#032E15
- mist-800#22292B
- v3 lime-950#1A2E05
- lime-950#192E03
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #123B31 · oklch(0.321 0.050 173.1) · ΔL +0.06
- #001D14 · oklch(0.201 0.050 173.1) · ΔL −0.06