HEX in OKLCH: #020618

Auch bekannt als: Tailwind slate-950

Ergebnis

#020618 → oklch(0.130 0.043 265.1)

Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #020618. 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: 2/255 = 0.00784 → 0.000607  (÷ 12.92)
    G: 6/255 = 0.02353 → 0.001821  (÷ 12.92)
    B: 24/255 = 0.09412 → 0.009134  (((x + 0.055) / 1.055)^2.4)
  2. 2. linear sRGB → LMS

    l = 0.4122·R + 0.5363·G + 0.0514·B = 0.001697
    m = 0.2119·R + 0.6807·G + 0.1074·B = 0.002349
    s = 0.0883·R + 0.2817·G + 0.6300·B = 0.006321
  3. 3. cube root

    l′ = ∛0.001697 = 0.119276
    m′ = ∛0.002349 = 0.132937
    s′ = ∛0.006321 = 0.184896
  4. 4. LMS′ → Oklab

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

    C = √(a² + b²) = 0.04253
    H = atan2(b, a) = 265.132°
    L = 0.12985
  6. 6. OKLCH

    oklch(0.12985 0.04253 265.132)
    rounded: oklch(0.130 0.043 265.1)

Alle Formate

HEX
#020618
RGB
rgb(2 6 24)
RGB (legacy)
rgb(2, 6, 24)
HSL
hsl(229.09 84.62% 5.10%) → hsl(229 85% 5%)
HWB
hwb(229 1% 91%)
OKLCH
oklch(0.130 0.043 265.1) · oklch(13.0% 0.043 265.1)
OKLab
oklab(0.130 -0.004 -0.042)
Lab (D50)
lab(1.80 1.41 -9.56)
LCH (D50)
lch(1.80 9.66 278.41)
Display P3
color(display-p3 0.0106 0.0230 0.0894)
Linear sRGB
color(srgb-linear 0.0006 0.0018 0.0091)

Gamut: sRGB und Display P3

#020618 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.089, Display P3 von 0.089; diese Farbe nutzt 48 % der verfügbaren sRGB-Chroma.

CSS-Snippets

.element {
  color: #020618;
  color: rgb(2 6 24);
  color: hsl(229 85% 5%);
  color: oklch(0.130 0.043 265.1);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.130 0.043 265.1);
}
/* arbitrary values */
class="text-[#020618] bg-[oklch(0.130_0.043_265.1)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.0106 0.0230 0.0894); }
}

/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #020618 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

  • #0A1327 · oklch(0.190 0.043 265.1) · ΔL +0.06
  • #00000A · oklch(0.070 0.043 265.1) · ΔL −0.06

Im Studio öffnen

Weitere Umrechner für diese Farbe

Alle Umrechner →