OKLCH in HEX: #594C5B

Noto anche come: Tailwind mauve-600

Risultato

oklch(0.43502 0.02938 321.775) → #594C5B

I valori sono mostrati a piena precisione, quindi riconvertendo si ottiene esattamente #594c5b. 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.43502 0.02938 321.775)
  2. 2. OKLCH → Oklab

    a = C·cos H = 0.02308
    b = C·sin H = -0.01818
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.440245
    m′ = L − 0.1056·a − 0.0639·b = 0.433744
    s′ = L − 0.0895·a − 1.2915·b = 0.456432
  4. 4. cube

    l = 0.440245³ = 0.085326
    m = 0.433744³ = 0.081602
    s = 0.456432³ = 0.095089
  5. 5. LMS → linear sRGB

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

    R = 0.34902 × 255 = 89.00 → 89
    G = 0.29805 × 255 = 76.00 → 76
    B = 0.35686 × 255 = 91.00 → 91
  7. 7. RGB → HEX

    #594C5B

Tutti i formati

HEX
#594c5b
RGB
rgb(89 76 91)
RGB (legacy)
rgb(89, 76, 91)
HSL
hsl(292.00 8.98% 32.75%) → hsl(292 9% 33%)
HWB
hwb(292 30% 64%)
OKLCH
oklch(0.435 0.029 321.8) · oklch(43.5% 0.029 321.8)
OKLab
oklab(0.435 0.023 -0.018)
Lab (D50)
lab(34.06 7.92 -6.74)
LCH (D50)
lch(34.06 10.41 319.60)
Display P3
color(display-p3 0.3406 0.2999 0.3529)
Linear sRGB
color(srgb-linear 0.0999 0.0723 0.1046)

Gamut: sRGB e Display P3

#594C5B è 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.207 e Display P3 a 0.224; questo colore usa il 14% della croma sRGB disponibile.

Snippet CSS

.element {
  color: #594c5b;
  color: rgb(89 76 91);
  color: hsl(292 9% 33%);
  color: oklch(0.435 0.029 321.8);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.435 0.029 321.8);
}
/* arbitrary values */
class="text-[#594c5b] bg-[oklch(0.435_0.029_321.8)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.3406 0.2999 0.3529); }
}

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

  • #6A5D6C · oklch(0.495 0.029 321.8) · ΔL +0.06
  • #493C4B · oklch(0.375 0.029 321.8) · ΔL −0.06

Apri nello studio

Altri convertitori per questo colore

Tutti i convertitori →