HEX in OKLCH: #030712

Auch bekannt als: Tailwind gray-950, Tailwind v3 gray-950

Ergebnis

#030712 → oklch(0.130 0.027 261.7)

Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #030712. 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: 3/255 = 0.01176 → 0.000911  (÷ 12.92)
    G: 7/255 = 0.02745 → 0.002125  (÷ 12.92)
    B: 18/255 = 0.07059 → 0.006049  (((x + 0.055) / 1.055)^2.4)
  2. 2. linear sRGB → LMS

    l = 0.4122·R + 0.5363·G + 0.0514·B = 0.001826
    m = 0.2119·R + 0.6807·G + 0.1074·B = 0.002289
    s = 0.0883·R + 0.2817·G + 0.6300·B = 0.004490
  3. 3. cube root

    l′ = ∛0.001826 = 0.122229
    m′ = ∛0.002289 = 0.131787
    s′ = ∛0.004490 = 0.164969
  4. 4. LMS′ → Oklab

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

    C = √(a² + b²) = 0.02737
    H = atan2(b, a) = 261.692°
    L = 0.12964
  6. 6. OKLCH

    oklch(0.12964 0.02737 261.692)
    rounded: oklch(0.130 0.027 261.7)

Alle Formate

HEX
#030712
RGB
rgb(3 7 18)
RGB (legacy)
rgb(3, 7, 18)
HSL
hsl(224.00 71.43% 4.12%) → hsl(224 71% 4%)
HWB
hwb(224 1% 93%)
OKLCH
oklch(0.130 0.027 261.7) · oklch(13.0% 0.027 261.7)
OKLab
oklab(0.130 -0.004 -0.027)
Lab (D50)
lab(1.89 0.25 -5.31)
LCH (D50)
lch(1.89 5.31 272.75)
Display P3
color(display-p3 0.0145 0.0269 0.0673)
Linear sRGB
color(srgb-linear 0.0009 0.0021 0.0060)

Gamut: sRGB und Display P3

#030712 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.059, Display P3 von 0.073; diese Farbe nutzt 47 % der verfügbaren sRGB-Chroma.

CSS-Snippets

.element {
  color: #030712;
  color: rgb(3 7 18);
  color: hsl(224 71% 4%);
  color: oklch(0.130 0.027 261.7);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.130 0.027 261.7);
}
/* arbitrary values */
class="text-[#030712] bg-[oklch(0.130_0.027_261.7)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.0145 0.0269 0.0673); }
}

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

  • #0D1420 · oklch(0.190 0.027 261.7) · ΔL +0.06
  • #000106 · oklch(0.070 0.027 261.7) · ΔL −0.06

Im Studio öffnen

Weitere Umrechner für diese Farbe

Alle Umrechner →