Skip to content

#df7ffd

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

RGB
223, 127, 253
HSL
286°, 97%, 75%
CMYK
12, 50, 0, 1
Luminance
0.3796

At a glance

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

Hex
#df7ffd
Hue
286°
violet
Saturation
97%
electric
Lightness
75%
light
Brightness
99%
HSV value
Perceived
70%
weighted brightness
Luminance
0.3796
WCAG relative
Temperature
Neutral
58/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
8.59:1
Closest name
Violet
ΔE2000 4.6
Where it sits
Hue286° of 360°
Saturation97%
Lightness75%
Temperature
Warm ← → Cool58% cool

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

Every format

HEX#df7ffd
RGBrgb(223, 127, 253)
HSLhsl(286, 97%, 75%)
CMYKcmyk(12%, 50%, 0%, 1%)
LABlab(68.0 56.5 -47.8)
LCHlch(68.0 74.0 319.8)
OKLCHoklch(0.748 0.197 317.7)
Decimal14647293
Display P3color(display-p3 0.875 0.498 0.992)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#df7ffd on white: 2.44:1
AA ✗ fail · AA-large · AAA
Aa
#df7ffd on black: 8.59:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #679FFF
deuteranopia · #84A9FA
tritanopia · #DF91B3

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #df7ffd 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.

#FBF1FD
#F6E4FC
#EDC1FB
#df7ffd
#D659FC
#C822FC
#B804F1
#9A03C9
#7B03A1
#5A0774
#380448
Base = 300Lightest = 50 · #FBF1FDDarkest = 950 · #380448
:root {
  --brand-50: #FBF1FD;
  --brand-100: #F6E4FC;
  --brand-200: #EDC1FB;
  --brand-300: #df7ffd;
  --brand-400: #D659FC;
  --brand-500: #C822FC;
  --brand-600: #B804F1;
  --brand-700: #9A03C9;
  --brand-800: #7B03A1;
  --brand-900: #5A0774;
  --brand-950: #380448;
  --brand: #df7ffd;
  --brand-ink: #000000;
}

Colors that work with #df7ffd

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#E2C0ED
Hairlines and dividers
Muted text#884B9B
Captions on the surface
Accent#63CC00
Second voice, not a rival
Dark variant#60027E
Hover, pressed, headers
Light variant#F9E6FF
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 #df7ffd

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#9DFD7F
Analogous left#A07FFD
Analogous right#FD7FDC
Split-complement 1#DCFD7F
Split-complement 2#7FFDA0
Triadic 1#FDDF7F
Triadic 2#7FFDDF
Tetradic#FDA07F

RGB percentages

Red87.5%
Green49.8%
Blue99.2%

CMYK percentages

Cyan11.9%
Magenta49.8%
Yellow0.0%
Key (black)0.8%

Color previews

#df7ffd text on a black background

contrast 8.59:1

Card sample

#df7ffd text on a white background

contrast 2.44:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #df7ffd

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.

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

#df7ffd, answered

What color is #df7ffd?

#df7ffd is a light electric violet, closest to Violet (ΔE2000 4.6). It sits at 286° on the hue wheel with 97% saturation and 75% lightness, which reads as neutral.

What is the RGB value of #df7ffd?

rgb(223, 127, 253) — 223 red, 127 green and 253 blue out of 255, or 87.5% / 49.8% / 99.2% by channel.

Is #df7ffd a light or a dark color?

It is a mid-tone. Relative luminance is 0.3796 and perceived brightness is 70%, so black text on it reaches 8.59:1.

Should I use black or white text on #df7ffd?

Black. It scores 8.59:1 against #df7ffd, versus 2.44:1 for white — AAA at any size.

What is the complementary color of #df7ffd?

#9DFD7F sits directly opposite on the wheel. Softer options are the split-complements #DCFD7F and #7FFDA0, which give the same contrast with far less vibration.

What colors go well with #df7ffd?

For interface work: #F9F4FA as the surface, #E2C0ED for borders, #884B9B for secondary text, #63CC00 as an accent and #60027E for hover and pressed states. For a palette, the analogous pair #A07FFD and #FD7FDC stays calm, while #9DFD7F is the loudest partner.

What is #df7ffd in CMYK for printing?

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

Neutral — it scores 58 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #FD7FED; nudged cooler, #B07EFE.

Work with #df7ffd in the Color Lab