OKLCH in HEX: #7008E7

Noto anche come: Tailwind violet-700

Risultato

oklch(0.49073 0.26988 292.563) → #7008E7

I valori sono mostrati a piena precisione, quindi riconvertendo si ottiene esattamente #7008e7. 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.49073 0.26988 292.563)
  2. 2. OKLCH → Oklab

    a = C·cos H = 0.10355
    b = C·sin H = -0.24922
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.477989
    m′ = L − 0.1056·a − 0.0639·b = 0.495713
    s′ = L − 0.0895·a − 1.2915·b = 0.803331
  4. 4. cube

    l = 0.477989³ = 0.109208
    m = 0.495713³ = 0.121812
    s = 0.803331³ = 0.518423
  5. 5. LMS → linear sRGB

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

    R = 0.43922 × 255 = 112.00 → 112
    G = 0.03138 × 255 = 8.00 → 8
    B = 0.90589 × 255 = 231.00 → 231
  7. 7. RGB → HEX

    #7008E7

Tutti i formati

HEX
#7008e7
RGB
rgb(112 8 231)
RGB (legacy)
rgb(112, 8, 231)
HSL
hsl(267.98 93.31% 46.86%) → hsl(268 93% 47%)
HWB
hwb(268 3% 9%)
OKLCH
oklch(0.491 0.270 292.6) · oklch(49.1% 0.270 292.6)
OKLab
oklab(0.491 0.104 -0.249)
Lab (D50)
lab(35.25 67.96 -88.76)
LCH (D50)
lch(35.25 111.79 307.44)
Display P3
color(display-p3 0.4012 0.0841 0.8706)
Linear sRGB
color(srgb-linear 0.1620 0.0024 0.7991)

Gamut: sRGB e Display P3

#7008E7 è 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.273 e Display P3 a 0.281; questo colore usa il 99% della croma sRGB disponibile.

Snippet CSS

.element {
  color: #7008e7;
  color: rgb(112 8 231);
  color: hsl(268 93% 47%);
  color: oklch(0.491 0.270 292.6);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.491 0.270 292.6);
}
/* arbitrary values */
class="text-[#7008e7] bg-[oklch(0.491_0.270_292.6)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.4012 0.0841 0.8706); }
}

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

  • #8031FC · oklch(0.551 0.270 292.6) · ΔL +0.06
  • #6100D2 · oklch(0.431 0.270 292.6) · ΔL −0.06

Apri nello studio

Altri convertitori per questo colore

Tutti i convertitori →