Skip to content

#df8dfc

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

RGB
223, 141, 252
HSL
284°, 95%, 77%
CMYK
12, 44, 0, 1
Luminance
0.4177

At a glance

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

Hex
#df8dfc
Hue
284°
violet
Saturation
95%
electric
Lightness
77%
light
Brightness
99%
HSV value
Perceived
72%
weighted brightness
Luminance
0.4177
WCAG relative
Temperature
Cool
59/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
9.35:1
Closest name
Violet
ΔE2000 4.5
Where it sits
Hue284° of 360°
Saturation95%
Lightness77%
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#df8dfc
RGBrgb(223, 141, 252)
HSLhsl(284, 95%, 77%)
CMYKcmyk(12%, 44%, 0%, 1%)
LABlab(70.7 49.2 -43.0)
LCHlch(70.7 65.3 318.8)
OKLCHoklch(0.768 0.174 316.8)
Decimal14650876
Display P3color(display-p3 0.875 0.553 0.988)

Copy-ready code

/* CSS */
color: #df8dfc;
background-color: #df8dfc;
/* Tailwind (arbitrary) */
class="text-[#df8dfc] bg-[#df8dfc]"
/* SCSS */
$brand: #df8dfc;
/* SwiftUI */
Color(red: 0.875, green: 0.553, blue: 0.988)
/* Android */
Color.parseColor("#df8dfc")
/* Flutter */
Color(0xFFDF8DFC)
/* Python / OpenCV (BGR) */
(252, 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 #df8dfc · 9.35:1
Use #000000AAA at every size.
Aa
White text · 2.25:1
AA fail · AA large fail · AAA fail
Aa
Black text · 9.35:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #df8dfc as text scores 2.25:1 on white and 9.35:1 on black.

Accessibility — WCAG contrast

Aa
#df8dfc on white: 2.25:1
AA ✗ fail · AA-large · AAA
Aa
#df8dfc on black: 9.35:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #7AA8FF
deuteranopia · #90B0F9
tritanopia · #DE9CB9

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #df8dfc 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
#F5E4FB
#EBC2FA
#df8dfc
#D15BFB
#C224F9
#B206EF
#9405C7
#77049F
#570873
#360548
Base = 300Lightest = 50 · #FAF1FDDarkest = 950 · #360548
:root {
  --brand-50: #FAF1FD;
  --brand-100: #F5E4FB;
  --brand-200: #EBC2FA;
  --brand-300: #df8dfc;
  --brand-400: #D15BFB;
  --brand-500: #C224F9;
  --brand-600: #B206EF;
  --brand-700: #9405C7;
  --brand-800: #77049F;
  --brand-900: #570873;
  --brand-950: #360548;
  --brand: #df8dfc;
  --brand-ink: #000000;
}

Colors that work with #df8dfc

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#E1C0ED
Hairlines and dividers
Muted text#864B9B
Captions on the surface
Accent#69CA02
Second voice, not a rival
Dark variant#5D037C
Hover, pressed, headers
Light variant#F8E6FE
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 #df8dfc

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#AAFC8D
Analogous left#A88DFC
Analogous right#FC8DE2
Split-complement 1#E2FC8D
Split-complement 2#8DFCA8
Triadic 1#FCDF8D
Triadic 2#8DFCDF
Tetradic#FCA88D

RGB percentages

Red87.5%
Green55.3%
Blue98.8%

CMYK percentages

Cyan11.5%
Magenta44.0%
Yellow0.0%
Key (black)1.2%

Color previews

#df8dfc text on a black background

contrast 9.35:1

Card sample

#df8dfc text on a white background

contrast 2.25:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #df8dfc

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.

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

#df8dfc, answered

What color is #df8dfc?

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

What is the RGB value of #df8dfc?

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

Is #df8dfc a light or a dark color?

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

Should I use black or white text on #df8dfc?

Black. It scores 9.35:1 against #df8dfc, versus 2.25:1 for white — AAA at any size.

What is the complementary color of #df8dfc?

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

What colors go well with #df8dfc?

For interface work: #F9F4FA as the surface, #E1C0ED for borders, #864B9B for secondary text, #69CA02 as an accent and #5D037C for hover and pressed states. For a palette, the analogous pair #A88DFC and #FC8DE2 stays calm, while #AAFC8D is the loudest partner.

What is #df8dfc in CMYK for printing?

cmyk(12%, 44%, 0%, 1%). 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 #df8dfc 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 #FC8DF0; nudged cooler, #B68CFD.

Work with #df8dfc in the Color Lab