HEX in OKLCH: #2B2B22

Auch bekannt als: Tailwind olive-800

Ergebnis

#2B2B22 → oklch(0.286 0.016 107.4)

Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #2b2b22. 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: 43/255 = 0.16863 → 0.024158  (((x + 0.055) / 1.055)^2.4)
    G: 43/255 = 0.16863 → 0.024158  (((x + 0.055) / 1.055)^2.4)
    B: 34/255 = 0.13333 → 0.015996  (((x + 0.055) / 1.055)^2.4)
  2. 2. linear sRGB → LMS

    l = 0.4122·R + 0.5363·G + 0.0514·B = 0.023738
    m = 0.2119·R + 0.6807·G + 0.1074·B = 0.023281
    s = 0.0883·R + 0.2817·G + 0.6300·B = 0.019016
  3. 3. cube root

    l′ = ∛0.023738 = 0.287395
    m′ = ∛0.023281 = 0.285541
    s′ = ∛0.019016 = 0.266916
  4. 4. LMS′ → Oklab

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

    C = √(a² + b²) = 0.01583
    H = atan2(b, a) = 107.360°
    L = 0.28601
  6. 6. OKLCH

    oklch(0.28601 0.01583 107.360)
    rounded: oklch(0.286 0.016 107.4)

Alle Formate

HEX
#2b2b22
RGB
rgb(43 43 34)
RGB (legacy)
rgb(43, 43, 34)
HSL
hsl(60.00 11.69% 15.10%) → hsl(60 12% 15%)
HWB
hwb(60 13% 83%)
OKLCH
oklch(0.286 0.016 107.4) · oklch(28.6% 0.016 107.4)
OKLab
oklab(0.286 -0.005 0.015)
Lab (D50)
lab(17.30 -1.46 5.90)
LCH (D50)
lch(17.30 6.08 103.93)
Display P3
color(display-p3 0.1686 0.1686 0.1369)
Linear sRGB
color(srgb-linear 0.0242 0.0242 0.0160)

Gamut: sRGB und Display P3

#2B2B22 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.061, Display P3 von 0.071; diese Farbe nutzt 26 % der verfügbaren sRGB-Chroma.

CSS-Snippets

.element {
  color: #2b2b22;
  color: rgb(43 43 34);
  color: hsl(60 12% 15%);
  color: oklch(0.286 0.016 107.4);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.286 0.016 107.4);
}
/* arbitrary values */
class="text-[#2b2b22] bg-[oklch(0.286_0.016_107.4)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.1686 0.1686 0.1369); }
}

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

  • #3A3A31 · oklch(0.346 0.016 107.4) · ΔL +0.06
  • #1D1D14 · oklch(0.226 0.016 107.4) · ΔL −0.06

Im Studio öffnen

Weitere Umrechner für diese Farbe

Alle Umrechner →