OKLCH in HEX: #475569

Noto anche come: Tailwind v3 slate-600

Risultato

oklch(0.44553 0.03745 257.281) → #475569

I valori sono mostrati a piena precisione, quindi riconvertendo si ottiene esattamente #475569. 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.44553 0.03745 257.281)
  2. 2. OKLCH → Oklab

    a = C·cos H = -0.00825
    b = C·sin H = -0.03653
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.434379
    m′ = L − 0.1056·a − 0.0639·b = 0.448733
    s′ = L − 0.0895·a − 1.2915·b = 0.493447
  4. 4. cube

    l = 0.434379³ = 0.081961
    m = 0.448733³ = 0.090357
    s = 0.493447³ = 0.120149
  5. 5. LMS → linear sRGB

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

    R = 0.27842 × 255 = 71.00 → 71
    G = 0.33333 × 255 = 85.00 → 85
    B = 0.41177 × 255 = 105.00 → 105
  7. 7. RGB → HEX

    #475569

Tutti i formati

HEX
#475569
RGB
rgb(71 85 105)
RGB (legacy)
rgb(71, 85, 105)
HSL
hsl(215.29 19.32% 34.51%) → hsl(215 19% 35%)
HWB
hwb(215 28% 59%)
OKLCH
oklch(0.446 0.037 257.3) · oklch(44.6% 0.037 257.3)
OKLab
oklab(0.446 -0.008 -0.037)
Lab (D50)
lab(35.54 -1.67 -13.49)
LCH (D50)
lch(35.54 13.59 262.92)
Display P3
color(display-p3 0.2891 0.3317 0.4048)
Linear sRGB
color(srgb-linear 0.0630 0.0908 0.1413)

Gamut: sRGB e Display P3

#475569 è 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.160 e Display P3 a 0.203; questo colore usa il 23% della croma sRGB disponibile.

Snippet CSS

.element {
  color: #475569;
  color: rgb(71 85 105);
  color: hsl(215 19% 35%);
  color: oklch(0.446 0.037 257.3);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.446 0.037 257.3);
}
/* arbitrary values */
class="text-[#475569] bg-[oklch(0.446_0.037_257.3)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.2891 0.3317 0.4048); }
}

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

  • #57667B · oklch(0.506 0.037 257.3) · ΔL +0.06
  • #374558 · oklch(0.386 0.037 257.3) · ΔL −0.06

Apri nello studio

Altri convertitori per questo colore

Tutti i convertitori →