OKLCH in HEX: #E4E4E7

Noto anche come: Tailwind zinc-200, Tailwind v3 zinc-200

Risultato

oklch(0.91973 0.00403 286.320) → #E4E4E7

I valori sono mostrati a piena precisione, quindi riconvertendo si ottiene esattamente #e4e4e7. 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.91973 0.00403 286.320)
  2. 2. OKLCH → Oklab

    a = C·cos H = 0.00113
    b = C·sin H = -0.00387
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.919344
    m′ = L − 0.1056·a − 0.0639·b = 0.919857
    s′ = L − 0.0895·a − 1.2915·b = 0.924624
  4. 4. cube

    l = 0.919344³ = 0.777024
    m = 0.919857³ = 0.778326
    s = 0.924624³ = 0.790487
  5. 5. LMS → linear sRGB

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

    R = 0.89412 × 255 = 228.00 → 228
    G = 0.89412 × 255 = 228.00 → 228
    B = 0.90588 × 255 = 231.00 → 231
  7. 7. RGB → HEX

    #E4E4E7

Tutti i formati

HEX
#e4e4e7
RGB
rgb(228 228 231)
RGB (legacy)
rgb(228, 228, 231)
HSL
hsl(240.00 5.88% 90.00%) → hsl(240 6% 90%)
HWB
hwb(240 89% 9%)
OKLCH
oklch(0.920 0.004 286.3) · oklch(92.0% 0.004 286.3)
OKLab
oklab(0.920 0.001 -0.004)
Lab (D50)
lab(90.65 0.40 -1.47)
LCH (D50)
lch(90.65 1.52 285.35)
Display P3
color(display-p3 0.8941 0.8941 0.9048)
Linear sRGB
color(srgb-linear 0.7758 0.7758 0.7991)

Gamut: sRGB e Display P3

#E4E4E7 è 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.040 e Display P3 a 0.045; questo colore usa il 10% della croma sRGB disponibile.

Snippet CSS

.element {
  color: #e4e4e7;
  color: rgb(228 228 231);
  color: hsl(240 6% 90%);
  color: oklch(0.920 0.004 286.3);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.920 0.004 286.3);
}
/* arbitrary values */
class="text-[#e4e4e7] bg-[oklch(0.920_0.004_286.3)]"

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

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

  • #F8F8FB · oklch(0.980 0.004 286.3) · ΔL +0.06
  • #D0D0D3 · oklch(0.860 0.004 286.3) · ΔL −0.06

Apri nello studio

Altri convertitori per questo colore

Tutti i convertitori →