HEX to RGB: #E6E6FA

Also known as: CSS lavender

Result

#E6E6FA → rgb(230 230 250)

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. HEX → pairs

    #E6E6FA → E6 | E6 | FA
  2. 2. base 16 → base 10

    R = E6₁₆ = 14×16 + 6 = 230
    G = E6₁₆ = 14×16 + 6 = 230
    B = FA₁₆ = 15×16 + 10 = 250
  3. 3. RGB

    rgb(230 230 250)

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?