OKLCH in HEX: #374151

Noto anche come: Tailwind v3 gray-700

Risultato

oklch(0.37293 0.03062 259.733) → #374151

I valori sono mostrati a piena precisione, quindi riconvertendo si ottiene esattamente #374151. 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.37293 0.03062 259.733)
  2. 2. OKLCH → Oklab

    a = C·cos H = -0.00546
    b = C·sin H = -0.03013
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.364265
    m′ = L − 0.1056·a − 0.0639·b = 0.375430
    s′ = L − 0.0895·a − 1.2915·b = 0.412330
  4. 4. cube

    l = 0.364265³ = 0.048334
    m = 0.375430³ = 0.052916
    s = 0.412330³ = 0.070103
  5. 5. LMS → linear sRGB

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

    R = 0.21569 × 255 = 55.00 → 55
    G = 0.25490 × 255 = 65.00 → 65
    B = 0.31765 × 255 = 81.00 → 81
  7. 7. RGB → HEX

    #374151

Tutti i formati

HEX
#374151
RGB
rgb(55 65 81)
RGB (legacy)
rgb(55, 65, 81)
HSL
hsl(216.92 19.12% 26.67%) → hsl(217 19% 27%)
HWB
hwb(217 22% 68%)
OKLCH
oklch(0.373 0.031 259.7) · oklch(37.3% 0.031 259.7)
OKLab
oklab(0.373 -0.005 -0.030)
Lab (D50)
lab(27.13 -0.95 -11.13)
LCH (D50)
lch(27.13 11.17 265.11)
Display P3
color(display-p3 0.2232 0.2537 0.3122)
Linear sRGB
color(srgb-linear 0.0382 0.0529 0.0823)

Gamut: sRGB e Display P3

#374151 è 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.150 e Display P3 a 0.189; questo colore usa il 20% della croma sRGB disponibile.

Snippet CSS

.element {
  color: #374151;
  color: rgb(55 65 81);
  color: hsl(217 19% 27%);
  color: oklch(0.373 0.031 259.7);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.373 0.031 259.7);
}
/* arbitrary values */
class="text-[#374151] bg-[oklch(0.373_0.031_259.7)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.2232 0.2537 0.3122); }
}

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

  • #475162 · oklch(0.433 0.031 259.7) · ΔL +0.06
  • #283141 · oklch(0.313 0.031 259.7) · ΔL −0.06

Apri nello studio

Altri convertitori per questo colore

Tutti i convertitori →