Skip to content

#e7dfff

a pale, electric violet · cool · closest name: Lavender

RGB
231, 223, 255
HSL
255°, 100%, 94%
CMYK
9, 13, 0, 0
Luminance
0.7698

At a glance

Every number on this page in one read: what #e7dfff is made of, how bright it looks, and which way it leans.

Hex
#e7dfff
Hue
255°
violet
Saturation
100%
electric
Lightness
94%
pale
Brightness
100%
HSV value
Perceived
90%
weighted brightness
Luminance
0.7698
WCAG relative
Temperature
Cool
75/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
16.40:1
Closest name
Lavender
ΔE2000 5.5
Where it sits
Hue255° of 360°
Saturation100%
Lightness94%
Temperature
Warm ← → Cool75% cool

Reads cool. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#e7dfff
RGBrgb(231, 223, 255)
HSLhsl(255, 100%, 94%)
CMYKcmyk(9%, 13%, 0%, 0%)
LABlab(90.3 8.6 -14.5)
LCHlch(90.3 16.9 300.7)
OKLCHoklch(0.920 0.044 297.0)
Decimal15196159
Display P3color(display-p3 0.906 0.875 1.000)

Copy-ready code

/* CSS */
color: #e7dfff;
background-color: #e7dfff;
/* Tailwind (arbitrary) */
class="text-[#e7dfff] bg-[#e7dfff]"
/* SCSS */
$brand: #e7dfff;
/* SwiftUI */
Color(red: 0.906, green: 0.875, blue: 1.000)
/* Android */
Color.parseColor("#e7dfff")
/* Flutter */
Color(0xFFE7DFFF)
/* Python / OpenCV (BGR) */
(255, 223, 231)

Best text color

Only one of black and white can be right. This is the one, with the number that proves it.

Readable at a glance#000000 on #e7dfff · 16.40:1
Use #000000AAA at every size.
Aa
White text · 1.28:1
AA fail · AA large fail · AAA fail
Aa
Black text · 16.40:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #e7dfff as text scores 1.28:1 on white and 16.40:1 on black.

Accessibility — WCAG contrast

Aa
#e7dfff on white: 1.28:1
AA ✗ fail · AA-large · AAA
Aa
#e7dfff on black: 16.40:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #D9E3FF
deuteranopia · #DAE3FE
tritanopia · #E3E3E9

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #e7dfff is pinned to step 100; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F4F1FE
#e7dfff
#CFC0FC
#AB8FFF
#8157FF
#571FFF
#3D00F5
#3300CC
#2900A3
#210576
#150349
Base = 100Lightest = 50 · #F4F1FEDarkest = 950 · #150349
:root {
  --brand-50: #F4F1FE;
  --brand-100: #e7dfff;
  --brand-200: #CFC0FC;
  --brand-300: #AB8FFF;
  --brand-400: #8157FF;
  --brand-500: #571FFF;
  --brand-600: #3D00F5;
  --brand-700: #3300CC;
  --brand-800: #2900A3;
  --brand-900: #210576;
  --brand-950: #150349;
  --brand: #e7dfff;
  --brand-ink: #000000;
}

Colors that work with #e7dfff

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#000000
Black wins here
Surface#F6F4FA
Tinted page background
Border#CBC0ED
Hairlines and dividers
Muted text#5F4B9B
Captions on the surface
Accent#CCCC00
Second voice, not a rival
Dark variant#200080
Hover, pressed, headers
Light variant#ECE5FF
Selected rows, tints
Dark surface#181424
Dark-mode background
Light mode
Everything in its place

Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.

Primary actionSecondaryBadge
Dark mode
Same hue, inverted

Lightness flips, hue holds. The accent stays the anchor in both themes.

Primary actionSecondaryAccent

How to use #e7dfff

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Card and section backgrounds
  • Brand accents, badges and data highlights
Use with care
  • Text of any size on white — fails WCAG AA
  • Full-page backgrounds — tiring over long sessions
  • White text placed on it
  • Pairing with a same-lightness hue — edges vibrate

Similar colors

One move away from this hex in each direction. Every swatch is its own page.

Color relationships

The wheel positions with their names attached, so you can grab the one you actually need.

Complementary#F7FFDF
Analogous left#DFE7FF
Analogous right#F7DFFF
Split-complement 1#FFF7DF
Split-complement 2#E7FFDF
Triadic 1#FFE7DF
Triadic 2#DFFFE7
Tetradic#FFDFE7

RGB percentages

Red90.6%
Green87.5%
Blue100.0%

CMYK percentages

Cyan9.4%
Magenta12.5%
Yellow0.0%
Key (black)0.0%

Color previews

#e7dfff text on a black background

contrast 16.40:1

Card sample

#e7dfff text on a white background

contrast 1.28:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #e7dfff;
Background color
Panel with #e7dfff background
background-color: #e7dfff;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #e7dfff;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(231, 223, 255, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(231, 223, 255, 0.45);
Border & gradient
Gradient panel
border: 3px solid #e7dfff;
background: linear-gradient(135deg, #e7dfff, #FCDFFF);

Monochromatic scale

Palettes built from #e7dfff

Shades — darker

Tints — lighter

Color harmonies

Nearest named colors

Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.

#e7dfff in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
Creative toolsFintechBeautyLuxury
Common UI roles
SurfacesBadgesHighlightsEmpty states
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#e7dfff, answered

What color is #e7dfff?

#e7dfff is a pale electric violet, closest to Lavender (ΔE2000 5.5). It sits at 255° on the hue wheel with 100% saturation and 94% lightness, which reads as cool.

What is the RGB value of #e7dfff?

rgb(231, 223, 255) — 231 red, 223 green and 255 blue out of 255, or 90.6% / 87.5% / 100% by channel.

Is #e7dfff a light or a dark color?

It is a light color. Relative luminance is 0.7698 and perceived brightness is 90%, so black text on it reaches 16.40:1.

Should I use black or white text on #e7dfff?

Black. It scores 16.40:1 against #e7dfff, versus 1.28:1 for white — AAA at any size.

What is the complementary color of #e7dfff?

#F7FFDF sits directly opposite on the wheel. Softer options are the split-complements #FFF7DF and #E7FFDF, which give the same contrast with far less vibration.

What colors go well with #e7dfff?

For interface work: #F6F4FA as the surface, #CBC0ED for borders, #5F4B9B for secondary text, #CCCC00 as an accent and #200080 for hover and pressed states. For a palette, the analogous pair #DFE7FF and #F7DFFF stays calm, while #F7FFDF is the loudest partner.

What is #e7dfff in CMYK for printing?

cmyk(9%, 13%, 0%, 0%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #e7dfff warm or cool?

Cool — it scores 75 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #F3DFFF; nudged cooler, #DFE3FF.

Work with #e7dfff in the Color Lab