OKLCH in HEX: #006045

Noto anche come: Tailwind emerald-800

Risultato

oklch(0.43360 0.09014 165.866) → #006045

I valori sono mostrati a piena precisione, quindi riconvertendo si ottiene esattamente #006045. 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.43360 0.09014 165.866)
  2. 2. OKLCH → Oklab

    a = C·cos H = -0.08741
    b = C·sin H = 0.02201
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.403706
    m′ = L − 0.1056·a − 0.0639·b = 0.441422
    s′ = L − 0.0895·a − 1.2915·b = 0.412995
  4. 4. cube

    l = 0.403706³ = 0.065795
    m = 0.441422³ = 0.086012
    s = 0.412995³ = 0.070442
  5. 5. LMS → linear sRGB

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

    R = 0.00000 × 255 = 0.00 → 0
    G = 0.37647 × 255 = 96.00 → 96
    B = 0.27058 × 255 = 69.00 → 69
  7. 7. RGB → HEX

    #006045

Tutti i formati

HEX
#006045
RGB
rgb(0 96 69)
RGB (legacy)
rgb(0, 96, 69)
HSL
hsl(163.13 100.00% 18.82%) → hsl(163 100% 19%)
HWB
hwb(163 0% 62%)
OKLCH
oklch(0.434 0.090 165.9) · oklch(43.4% 0.090 165.9)
OKLab
oklab(0.434 -0.087 0.022)
Lab (D50)
lab(35.49 -31.17 8.25)
LCH (D50)
lch(35.49 32.24 165.17)
Display P3
color(display-p3 0.1550 0.3704 0.2776)
Linear sRGB
color(srgb-linear 0.0000 0.1170 0.0595)

Gamut: sRGB e Display P3

#006045 è 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.090 e Display P3 a 0.123; questo colore usa il 100% della croma sRGB disponibile.

Snippet CSS

.element {
  color: #006045;
  color: rgb(0 96 69);
  color: hsl(163 100% 19%);
  color: oklch(0.434 0.090 165.9);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.434 0.090 165.9);
}
/* arbitrary values */
class="text-[#006045] bg-[oklch(0.434_0.090_165.9)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.1550 0.3704 0.2776); }
}

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

  • #1F7155 · oklch(0.494 0.090 165.9) · ΔL +0.06
  • #004F35 · oklch(0.374 0.090 165.9) · ΔL −0.06

Apri nello studio

Altri convertitori per questo colore

Tutti i convertitori →