OKLCH in HEX: #394447

Noto anche come: Tailwind mist-700

Risultato

oklch(0.37793 0.01523 216.022) → #394447

I valori sono mostrati a piena precisione, quindi riconvertendo si ottiene esattamente #394447. La forma arrotondata è quella che di solito incolli nel CSS.

Calcolo passo passo

Ogni numero è calcolato dall’input, nulla viene cercato in tabelle.

  1. 1. input

    oklch(0.37793 0.01523 216.022)
  2. 2. OKLCH → Oklab

    a = C·cos H = -0.01232
    b = C·sin H = -0.00896
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.371115
    m′ = L − 0.1056·a − 0.0639·b = 0.379802
    s′ = L − 0.0895·a − 1.2915·b = 0.390600
  4. 4. cube

    l = 0.371115³ = 0.051112
    m = 0.379802³ = 0.054786
    s = 0.390600³ = 0.059593
  5. 5. LMS → linear sRGB

    R = 4.0767·l − 3.3077·m + 0.2310·s = 0.040919
    G = −1.2684·l + 2.6098·m − 0.3413·s = 0.057806
    B = −0.0042·l − 0.7034·m + 1.7076·s = 0.063010
  6. 6. linear → sRGB, × 255

    R = 0.22354 × 255 = 57.00 → 57
    G = 0.26667 × 255 = 68.00 → 68
    B = 0.27843 × 255 = 71.00 → 71
  7. 7. RGB → HEX

    #394447

Tutti i formati

HEX
#394447
RGB
rgb(57 68 71)
RGB (legacy)
rgb(57, 68, 71)
HSL
hsl(192.86 10.94% 25.10%) → hsl(193 11% 25%)
HWB
hwb(193 22% 72%)
OKLCH
oklch(0.378 0.015 216.0) · oklch(37.8% 0.015 216.0)
OKLab
oklab(0.378 -0.012 -0.009)
Lab (D50)
lab(27.94 -4.06 -3.40)
LCH (D50)
lch(27.94 5.30 219.96)
Display P3
color(display-p3 0.2319 0.2654 0.2768)
Linear sRGB
color(srgb-linear 0.0409 0.0578 0.0630)

Gamut: sRGB e Display P3

#394447 è un colore esadecimale, quindi sta dentro sRGB e di conseguenza dentro Display P3. A questa luminosità e tonalità sRGB arriva a una croma di 0.067 e Display P3 a 0.089; questo colore usa il 23% della croma sRGB disponibile.

Snippet CSS

.element {
  color: #394447;
  color: rgb(57 68 71);
  color: hsl(193 11% 25%);
  color: oklch(0.378 0.015 216.0);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.378 0.015 216.0);
}
/* arbitrary values */
class="text-[#394447] bg-[oklch(0.378_0.015_216.0)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.2319 0.2654 0.2768); }
}

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

Colori vicini

I colori più vicini nelle palette Tailwind e CSS (distanza OKLab).

Più chiaro e più scuro, stessa tonalità e croma

  • #495457 · oklch(0.438 0.015 216.0) · ΔL +0.06
  • #2A3437 · oklch(0.318 0.015 216.0) · ΔL −0.06

Apri nello studio

Altri convertitori per questo colore

Tutti i convertitori →