Skip to content

#df8dfe

a light, electric violet · cool · closest name: Violet

RGB
223, 141, 254
HSL
284°, 98%, 78%
CMYK
12, 45, 0, 0
Luminance
0.4189

At a glance

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

Hex
#df8dfe
Hue
284°
violet
Saturation
98%
electric
Lightness
78%
light
Brightness
100%
HSV value
Perceived
72%
weighted brightness
Luminance
0.4189
WCAG relative
Temperature
Cool
59/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
9.38:1
Closest name
Violet
ΔE2000 4.8
Where it sits
Hue284° of 360°
Saturation98%
Lightness78%
Temperature
Warm ← → Cool59% 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#df8dfe
RGBrgb(223, 141, 254)
HSLhsl(284, 98%, 78%)
CMYKcmyk(12%, 45%, 0%, 0%)
LABlab(70.8 49.6 -44.0)
LCHlch(70.8 66.3 318.4)
OKLCHoklch(0.769 0.176 316.2)
Decimal14650878
Display P3color(display-p3 0.875 0.553 0.996)

Copy-ready code

/* CSS */
color: #df8dfe;
background-color: #df8dfe;
/* Tailwind (arbitrary) */
class="text-[#df8dfe] bg-[#df8dfe]"
/* SCSS */
$brand: #df8dfe;
/* SwiftUI */
Color(red: 0.875, green: 0.553, blue: 0.996)
/* Android */
Color.parseColor("#df8dfe")
/* Flutter */
Color(0xFFDF8DFE)
/* Python / OpenCV (BGR) */
(254, 141, 223)

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 #df8dfe · 9.38:1
Use #000000AAA at every size.
Aa
White text · 2.24:1
AA fail · AA large fail · AAA fail
Aa
Black text · 9.38:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #df8dfe as text scores 2.24:1 on white and 9.38:1 on black.

Accessibility — WCAG contrast

Aa
#df8dfe on white: 2.24:1
AA ✗ fail · AA-large · AAA
Aa
#df8dfe on black: 9.38:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #79A8FF
deuteranopia · #8FB0FB
tritanopia · #DE9DBA

Color scale — 50 to 950

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

#FAF1FD
#F5E3FC
#EBC1FB
#df8dfe
#D058FE
#C021FD
#B102F3
#9302CA
#7601A2
#560675
#360449
Base = 300Lightest = 50 · #FAF1FDDarkest = 950 · #360449
:root {
  --brand-50: #FAF1FD;
  --brand-100: #F5E3FC;
  --brand-200: #EBC1FB;
  --brand-300: #df8dfe;
  --brand-400: #D058FE;
  --brand-500: #C021FD;
  --brand-600: #B102F3;
  --brand-700: #9302CA;
  --brand-800: #7601A2;
  --brand-900: #560675;
  --brand-950: #360449;
  --brand: #df8dfe;
  --brand-ink: #000000;
}

Colors that work with #df8dfe

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#F9F4FA
Tinted page background
Border#E0C0ED
Hairlines and dividers
Muted text#854B9B
Captions on the surface
Accent#6ACC00
Second voice, not a rival
Dark variant#5C017E
Hover, pressed, headers
Light variant#F8E6FF
Selected rows, tints
Dark surface#201424
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 #df8dfe

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#ACFE8D
Analogous left#A78DFE
Analogous right#FE8DE5
Split-complement 1#E5FE8D
Split-complement 2#8DFEA7
Triadic 1#FEDF8D
Triadic 2#8DFEDF
Tetradic#FEA78D

RGB percentages

Red87.5%
Green55.3%
Blue99.6%

CMYK percentages

Cyan12.2%
Magenta44.5%
Yellow0.0%
Key (black)0.4%

Color previews

#df8dfe text on a black background

contrast 9.38:1

Card sample

#df8dfe text on a white background

contrast 2.24:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #df8dfe

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.

#df8dfe 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.

#df8dfe, answered

What color is #df8dfe?

#df8dfe is a light electric violet, closest to Violet (ΔE2000 4.8). It sits at 284° on the hue wheel with 98% saturation and 78% lightness, which reads as cool.

What is the RGB value of #df8dfe?

rgb(223, 141, 254) — 223 red, 141 green and 254 blue out of 255, or 87.5% / 55.3% / 99.6% by channel.

Is #df8dfe a light or a dark color?

It is a mid-tone. Relative luminance is 0.4189 and perceived brightness is 72%, so black text on it reaches 9.38:1.

Should I use black or white text on #df8dfe?

Black. It scores 9.38:1 against #df8dfe, versus 2.24:1 for white — AAA at any size.

What is the complementary color of #df8dfe?

#ACFE8D sits directly opposite on the wheel. Softer options are the split-complements #E5FE8D and #8DFEA7, which give the same contrast with far less vibration.

What colors go well with #df8dfe?

For interface work: #F9F4FA as the surface, #E0C0ED for borders, #854B9B for secondary text, #6ACC00 as an accent and #5C017E for hover and pressed states. For a palette, the analogous pair #A78DFE and #FE8DE5 stays calm, while #ACFE8D is the loudest partner.

What is #df8dfe in CMYK for printing?

cmyk(12%, 45%, 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 #df8dfe warm or cool?

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

Work with #df8dfe in the Color Lab