OKLCH in HEX: #FF8C00

Noto anche come: CSS darkorange

Risultato

oklch(0.75054 0.17911 58.283) → #FF8C00

I valori sono mostrati a piena precisione, quindi riconvertendo si ottiene esattamente #ff8c00. 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.75054 0.17911 58.283)
  2. 2. OKLCH → Oklab

    a = C·cos H = 0.09416
    b = C·sin H = 0.15236
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.820740
    m′ = L − 0.1056·a − 0.0639·b = 0.730871
    s′ = L − 0.0895·a − 1.2915·b = 0.545342
  4. 4. cube

    l = 0.820740³ = 0.552862
    m = 0.730871³ = 0.390411
    s = 0.545342³ = 0.162184
  5. 5. LMS → linear sRGB

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

    R = 0.99999 × 255 = 255.00 → 255
    G = 0.54902 × 255 = 140.00 → 140
    B = 0.00006 × 255 = 0.02 → 0
  7. 7. RGB → HEX

    #FF8C00

Tutti i formati

HEX
#ff8c00
RGB
rgb(255 140 0)
RGB (legacy)
rgb(255, 140, 0)
HSL
hsl(32.94 100.00% 50.00%) → hsl(33 100% 50%)
HWB
hwb(33 0% 0%)
OKLCH
oklch(0.751 0.179 58.3) · oklch(75.1% 0.179 58.3)
OKLab
oklab(0.751 0.094 0.152)
Lab (D50)
lab(70.21 39.78 76.09)
LCH (D50)
lch(70.21 85.86 62.40)
Display P3
color(display-p3 0.9401 0.5719 0.2093)
Linear sRGB
color(srgb-linear 1.0000 0.2623 0.0000)

Gamut: sRGB e Display P3

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

Snippet CSS

.element {
  color: #ff8c00;
  color: rgb(255 140 0);
  color: hsl(33 100% 50%);
  color: oklch(0.751 0.179 58.3);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.751 0.179 58.3);
}
/* arbitrary values */
class="text-[#ff8c00] bg-[oklch(0.751_0.179_58.3)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.9401 0.5719 0.2093); }
}

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

  • #FF9F2F · oklch(0.811 0.179 58.3) · ΔL +0.06
  • #EA7900 · oklch(0.691 0.179 58.3) · ΔL −0.06

Apri nello studio

Altri convertitori per questo colore

Tutti i convertitori →