OKLCH in HEX: #0E7490

Noto anche come: Tailwind v3 cyan-700

Risultato

oklch(0.51976 0.09357 223.128) → #0E7490

I valori sono mostrati a piena precisione, quindi riconvertendo si ottiene esattamente #0e7490. 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.51976 0.09357 223.128)
  2. 2. OKLCH → Oklab

    a = C·cos H = -0.06829
    b = C·sin H = -0.06397
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.478890
    m′ = L − 0.1056·a − 0.0639·b = 0.531053
    s′ = L − 0.0895·a − 1.2915·b = 0.608484
  4. 4. cube

    l = 0.478890³ = 0.109826
    m = 0.531053³ = 0.149766
    s = 0.608484³ = 0.225293
  5. 5. LMS → linear sRGB

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

    R = 0.05484 × 255 = 13.98 → 14
    G = 0.45490 × 255 = 116.00 → 116
    B = 0.56471 × 255 = 144.00 → 144
  7. 7. RGB → HEX

    #0E7490

Tutti i formati

HEX
#0e7490
RGB
rgb(14 116 144)
RGB (legacy)
rgb(14, 116, 144)
HSL
hsl(192.92 82.28% 30.98%) → hsl(193 82% 31%)
HWB
hwb(193 5% 44%)
OKLCH
oklch(0.520 0.094 223.1) · oklch(52.0% 0.094 223.1)
OKLab
oklab(0.520 -0.068 -0.064)
Lab (D50)
lab(44.67 -19.70 -23.37)
LCH (D50)
lch(44.67 30.57 229.87)
Display P3
color(display-p3 0.2048 0.4480 0.5532)
Linear sRGB
color(srgb-linear 0.0044 0.1746 0.2789)

Gamut: sRGB e Display P3

#0E7490 è 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.097 e Display P3 a 0.128; questo colore usa il 97% della croma sRGB disponibile.

Snippet CSS

.element {
  color: #0e7490;
  color: rgb(14 116 144);
  color: hsl(193 82% 31%);
  color: oklch(0.520 0.094 223.1);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.520 0.094 223.1);
}
/* arbitrary values */
class="text-[#0e7490] bg-[oklch(0.520_0.094_223.1)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.2048 0.4480 0.5532); }
}

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

  • #2B86A3 · oklch(0.580 0.094 223.1) · ΔL +0.06
  • #00627E · oklch(0.460 0.094 223.1) · ΔL −0.06

Apri nello studio

Altri convertitori per questo colore

Tutti i convertitori →