Skip to content

#df7ffa

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

RGB
223, 127, 250
HSL
287°, 93%, 74%
CMYK
11, 49, 0, 2
Luminance
0.3777

At a glance

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

Hex
#df7ffa
Hue
287°
violet
Saturation
93%
electric
Lightness
74%
light
Brightness
98%
HSV value
Perceived
70%
weighted brightness
Luminance
0.3777
WCAG relative
Temperature
Neutral
57/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
8.55:1
Closest name
Violet
ΔE2000 4.2
Where it sits
Hue287° of 360°
Saturation93%
Lightness74%
Temperature
Warm ← → Cool57% 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#df7ffa
RGBrgb(223, 127, 250)
HSLhsl(287, 93%, 74%)
CMYKcmyk(11%, 49%, 0%, 2%)
LABlab(67.8 55.9 -46.4)
LCHlch(67.8 72.7 320.3)
OKLCHoklch(0.746 0.194 318.5)
Decimal14647290
Display P3color(display-p3 0.875 0.498 0.980)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#df7ffa on white: 2.46:1
AA ✗ fail · AA-large · AAA
Aa
#df7ffa on black: 8.55:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #699FFE
deuteranopia · #85A9F7
tritanopia · #DF90B1

Color scale — 50 to 950

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

#FBF2FD
#F6E4FB
#EDC3F9
#df7ffa
#D65DF9
#C927F7
#BA09EC
#9B08C4
#7C069D
#5A0971
#380647
Base = 300Lightest = 50 · #FBF2FDDarkest = 950 · #380647
:root {
  --brand-50: #FBF2FD;
  --brand-100: #F6E4FB;
  --brand-200: #EDC3F9;
  --brand-300: #df7ffa;
  --brand-400: #D65DF9;
  --brand-500: #C927F7;
  --brand-600: #BA09EC;
  --brand-700: #9B08C4;
  --brand-800: #7C069D;
  --brand-900: #5A0971;
  --brand-950: #380647;
  --brand: #df7ffa;
  --brand-ink: #000000;
}

Colors that work with #df7ffa

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#E3C0ED
Hairlines and dividers
Muted text#894B9B
Captions on the surface
Accent#61C903
Second voice, not a rival
Dark variant#61057B
Hover, pressed, headers
Light variant#F9E6FE
Selected rows, tints
Dark surface#211424
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 #df7ffa

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#9AFA7F
Analogous left#A17FFA
Analogous right#FA7FD8
Split-complement 1#D8FA7F
Split-complement 2#7FFAA1
Triadic 1#FADF7F
Triadic 2#7FFADF
Tetradic#FAA17F

RGB percentages

Red87.5%
Green49.8%
Blue98.0%

CMYK percentages

Cyan10.8%
Magenta49.2%
Yellow0.0%
Key (black)2.0%

Color previews

#df7ffa text on a black background

contrast 8.55:1

Card sample

#df7ffa text on a white background

contrast 2.46:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #df7ffa

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.

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

#df7ffa, answered

What color is #df7ffa?

#df7ffa is a light electric violet, closest to Violet (ΔE2000 4.2). It sits at 287° on the hue wheel with 93% saturation and 74% lightness, which reads as neutral.

What is the RGB value of #df7ffa?

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

Is #df7ffa a light or a dark color?

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

Should I use black or white text on #df7ffa?

Black. It scores 8.55:1 against #df7ffa, versus 2.46:1 for white — AAA at any size.

What is the complementary color of #df7ffa?

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

What colors go well with #df7ffa?

For interface work: #F9F4FA as the surface, #E3C0ED for borders, #894B9B for secondary text, #61C903 as an accent and #61057B for hover and pressed states. For a palette, the analogous pair #A17FFA and #FA7FD8 stays calm, while #9AFA7F is the loudest partner.

What is #df7ffa in CMYK for printing?

cmyk(11%, 49%, 0%, 2%). 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 #df7ffa warm or cool?

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

Work with #df7ffa in the Color Lab