OKLCH in HEX: #FF6467

Noto anche come: Tailwind red-400

Risultato

oklch(0.70218 0.18923 22.228) → #FF6467

I valori sono mostrati a piena precisione, quindi riconvertendo si ottiene esattamente #ff6467. 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.70218 0.18923 22.228)
  2. 2. OKLCH → Oklab

    a = C·cos H = 0.17517
    b = C·sin H = 0.07158
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.787054
    m′ = L − 0.1056·a − 0.0639·b = 0.679118
    s′ = L − 0.0895·a − 1.2915·b = 0.594055
  4. 4. cube

    l = 0.787054³ = 0.487543
    m = 0.679118³ = 0.313210
    s = 0.594055³ = 0.209643
  5. 5. LMS → linear sRGB

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

    R = 1.00000 × 255 = 255.00 → 255
    G = 0.39214 × 255 = 100.00 → 100
    B = 0.40391 × 255 = 103.00 → 103
  7. 7. RGB → HEX

    #FF6467

Tutti i formati

HEX
#ff6467
RGB
rgb(255 100 103)
RGB (legacy)
rgb(255, 100, 103)
HSL
hsl(358.84 100.00% 69.61%) → hsl(359 100% 70%)
HWB
hwb(359 39% 0%)
OKLCH
oklch(0.702 0.189 22.2) · oklch(70.2% 0.189 22.2)
OKLab
oklab(0.702 0.175 0.072)
Lab (D50)
lab(63.51 60.17 31.00)
LCH (D50)
lch(63.51 67.69 27.26)
Display P3
color(display-p3 0.9285 0.4320 0.4233)
Linear sRGB
color(srgb-linear 1.0000 0.1274 0.1356)

Gamut: sRGB e Display P3

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

Snippet CSS

.element {
  color: #ff6467;
  color: rgb(255 100 103);
  color: hsl(359 100% 70%);
  color: oklch(0.702 0.189 22.2);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.702 0.189 22.2);
}
/* arbitrary values */
class="text-[#ff6467] bg-[oklch(0.702_0.189_22.2)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.9285 0.4320 0.4233); }
}

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

  • #FF7879 · oklch(0.762 0.189 22.2) · ΔL +0.06
  • #E95055 · oklch(0.642 0.189 22.2) · ΔL −0.06

Apri nello studio

Altri convertitori per questo colore

Tutti i convertitori →