HEX in OKLCH: #009966

Auch bekannt als: Tailwind emerald-600

Ergebnis

#009966 → oklch(0.603 0.134 160.9)

Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #009966. 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. 1. sRGB → linear

    R: 0/255 = 0.00000 → 0.000000  (÷ 12.92)
    G: 153/255 = 0.60000 → 0.318547  (((x + 0.055) / 1.055)^2.4)
    B: 102/255 = 0.40000 → 0.132868  (((x + 0.055) / 1.055)^2.4)
  2. 2. linear sRGB → LMS

    l = 0.4122·R + 0.5363·G + 0.0514·B = 0.177683
    m = 0.2119·R + 0.6807·G + 0.1074·B = 0.231104
    s = 0.0883·R + 0.2817·G + 0.6300·B = 0.173445
  3. 3. cube root

    l′ = ∛0.177683 = 0.562188
    m′ = ∛0.231104 = 0.613672
    s′ = ∛0.173445 = 0.557683
  4. 4. LMS′ → Oklab

    L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.60306
    a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = -0.12706
    b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = 0.04394
  5. 5. Oklab → OKLCH

    C = √(a² + b²) = 0.13445
    H = atan2(b, a) = 160.923°
    L = 0.60306
  6. 6. OKLCH

    oklch(0.60306 0.13445 160.923)
    rounded: oklch(0.603 0.134 160.9)

Alle Formate

HEX
#009966
RGB
rgb(0 153 102)
RGB (legacy)
rgb(0, 153, 102)
HSL
hsl(160.00 100.00% 30.00%) → hsl(160 100% 30%)
HWB
hwb(160 0% 40%)
OKLCH
oklch(0.603 0.134 160.9) · oklch(60.3% 0.134 160.9)
OKLab
oklab(0.603 -0.127 0.044)
Lab (D50)
lab(55.73 -45.32 16.82)
LCH (D50)
lch(55.73 48.34 159.64)
Display P3
color(display-p3 0.2637 0.5909 0.4156)
Linear sRGB
color(srgb-linear 0.0000 0.3185 0.1329)

Gamut: sRGB und Display P3

#009966 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.134, Display P3 von 0.185; diese Farbe nutzt 100 % der verfügbaren sRGB-Chroma.

CSS-Snippets

.element {
  color: #009966;
  color: rgb(0 153 102);
  color: hsl(160 100% 30%);
  color: oklch(0.603 0.134 160.9);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.603 0.134 160.9);
}
/* arbitrary values */
class="text-[#009966] bg-[oklch(0.603_0.134_160.9)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.2637 0.5909 0.4156); }
}

/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #009966 calc(l - 0.1) c h); }

Ähnliche Farben

Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).

Heller und dunkler, gleicher Farbton und gleiche Chroma

  • #2CAC78 · oklch(0.663 0.134 160.9) · ΔL +0.06
  • #008655 · oklch(0.543 0.134 160.9) · ΔL −0.06

Im Studio öffnen

Weitere Umrechner für diese Farbe

Alle Umrechner →