#ECE8F2

A color in the Violet family

#ece8f2 is a color in the Violet family: RGB(236, 232, 242), HSL(264°, 28%, 93%), CMYK(2%, 4%, 0%, 5%). Closest named color: lavender. Contrast is 1.21:1 on white and 17.39:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#ece8f2
RGBrgb(236 232 242)
RGB (legacy)rgb(236, 232, 242)
RGB %rgb(93% 91% 95%)
HSLhsl(264 28% 93%)
HSV / HSBhsv(264, 4%, 95%)
HWBhwb(264 91% 5%)
CMYKcmyk(2%, 4%, 0%, 5%)
CIELAB (D50)lab(92.53 2.73 -4.36)
LCHlch(92.53 5.15 302.04)
OKLaboklab(0.937 0.0079 -0.0116)
OKLCHoklch(0.937 0.014 304.13)
Decimal15526130

Properties

Color ToneViolet
Closest named colorlavender ΔE 1.6
Closest web-safe color#ffffff
Hue264°
Saturation (HSL / HSV)28% / 4%
Lightness (HSL)93%
Brightness or Value (HSV)95%
Luminance (Rec.601 / Rec.709)92% / 92%
Relative luminance (WCAG)0.8196
Red / Green / Blue236 / 232 / 242

WCAG 2.2 Contrast Ratio

On White (#ffffff)
1.21:1
AA Normal (4.5:1) · FailAA Large (3:1) · FailAAA Normal (7:1) · Fail
On Black (#000000)
17.39:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
Aa Bb 123

APCA Contrast Lc (reference) — As text on white / black: Lc 10.2 / -93.9 · As background with white / black text: Lc -11.9 / 93.4

Lightness Scale (OKLCH 50–950)

Eleven steps that change only perceived lightness while keeping hue and chroma — ready to use as design-system color tokens.

Tints (mixed with white)

Shades (mixed with black)

Color Harmonies

Color Vision Deficiency Simulation

Estimated appearance of this color for people with color vision deficiencies (Machado 2009).

Similar Named Colors

Use in CSS

:root {
  --color-brand: #ece8f2;
  --color-brand-oklch: oklch(93.7% 0.014 304.13);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(236 232 242 / 50%); }
/* Tailwind CSS */
<div class="bg-[#ece8f2] text-[#ece8f2] border-[#ece8f2]">