OKLCH to HEX: #E6E6FA

Also known as: CSS lavender

Result

oklch(0.93090 0.02694 285.865) → #E6E6FA

Values are shown at full precision, so converting back gives exactly #e6e6fa. The rounded form is what you normally paste into CSS.

Step-by-step math

Every number below is computed from the input, nothing is looked up.

  1. 1. input

    oklch(0.93090 0.02694 285.865)
  2. 2. OKLCH → Oklab

    a = C·cos H = 0.00736
    b = C·sin H = -0.02591
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.928227
    m′ = L − 0.1056·a − 0.0639·b = 0.931777
    s′ = L − 0.0895·a − 1.2915·b = 0.963708
  4. 4. cube

    l = 0.928227³ = 0.799764
    m = 0.931777³ = 0.808977
    s = 0.963708³ = 0.895028
  5. 5. LMS → linear sRGB

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

    R = 0.90196 × 255 = 230.00 → 230
    G = 0.90196 × 255 = 230.00 → 230
    B = 0.98039 × 255 = 250.00 → 250
  7. 7. RGB → HEX

    #E6E6FA

All formats

HEX
#e6e6fa
RGB
rgb(230 230 250)
RGB (legacy)
rgb(230, 230, 250)
HSL
hsl(240.00 66.67% 94.12%) → hsl(240 67% 94%)
HWB
hwb(240 90% 2%)
OKLCH
oklch(0.931 0.027 285.9) · oklch(93.1% 0.027 285.9)
OKLab
oklab(0.931 0.007 -0.026)
Lab (D50)
lab(91.74 2.78 -9.72)
LCH (D50)
lch(91.74 10.11 285.93)
Display P3
color(display-p3 0.9020 0.9020 0.9737)
Linear sRGB
color(srgb-linear 0.7913 0.7913 0.9560)

Gamut: sRGB and Display P3

#E6E6FA is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.035 and Display P3 reaches 0.038; this color uses 78% of the sRGB chroma available.

CSS snippets

.element {
  color: #e6e6fa;
  color: rgb(230 230 250);
  color: hsl(240 67% 94%);
  color: oklch(0.931 0.027 285.9);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.931 0.027 285.9);
}
/* arbitrary values */
class="text-[#e6e6fa] bg-[oklch(0.931_0.027_285.9)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.9020 0.9020 0.9737); }
}

/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #e6e6fa calc(l - 0.1) c h); }

Nearby colors

Closest colors in the Tailwind and CSS named palettes (OKLab distance).

Lighter and darker, same hue and chroma

  • #FAFAFF · oklch(0.991 0.027 285.9) · ΔL +0.06
  • #D2D2E6 · oklch(0.871 0.027 285.9) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?