Skip to content

#df7bfe

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

RGB
223, 123, 254
HSL
286°, 99%, 74%
CMYK
12, 52, 0, 0
Luminance
0.3701

At a glance

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

Hex
#df7bfe
Hue
286°
violet
Saturation
99%
electric
Lightness
74%
light
Brightness
100%
HSV value
Perceived
69%
weighted brightness
Luminance
0.3701
WCAG relative
Temperature
Neutral
58/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
8.40:1
Closest name
Violet
ΔE2000 5
Where it sits
Hue286° of 360°
Saturation99%
Lightness74%
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#df7bfe
RGBrgb(223, 123, 254)
HSLhsl(286, 99%, 74%)
CMYKcmyk(12%, 52%, 0%, 0%)
LABlab(67.3 58.7 -49.5)
LCHlch(67.3 76.8 319.9)
OKLCHoklch(0.743 0.204 317.7)
Decimal14646270
Display P3color(display-p3 0.875 0.482 0.996)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#df7bfe on white: 2.50:1
AA ✗ fail · AA-large · AAA
Aa
#df7bfe on black: 8.40:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #609DFF
deuteranopia · #80A7FA
tritanopia · #DE8FB1

Color scale — 50 to 950

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

#FBF1FE
#F6E3FC
#EDC1FB
#df7bfe
#D758FE
#C920FD
#BA02F3
#9B02CA
#7C01A2
#5A0675
#390449
Base = 300Lightest = 50 · #FBF1FEDarkest = 950 · #390449
:root {
  --brand-50: #FBF1FE;
  --brand-100: #F6E3FC;
  --brand-200: #EDC1FB;
  --brand-300: #df7bfe;
  --brand-400: #D758FE;
  --brand-500: #C920FD;
  --brand-600: #BA02F3;
  --brand-700: #9B02CA;
  --brand-800: #7C01A2;
  --brand-900: #5A0675;
  --brand-950: #390449;
  --brand: #df7bfe;
  --brand-ink: #000000;
}

Colors that work with #df7bfe

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#64CC00
Second voice, not a rival
Dark variant#61017F
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 #df7bfe

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#9AFE7B
Analogous left#9D7BFE
Analogous right#FE7BDB
Split-complement 1#DBFE7B
Split-complement 2#7BFE9D
Triadic 1#FEDF7B
Triadic 2#7BFEDF
Tetradic#FE9D7B

RGB percentages

Red87.5%
Green48.2%
Blue99.6%

CMYK percentages

Cyan12.2%
Magenta51.6%
Yellow0.0%
Key (black)0.4%

Color previews

#df7bfe text on a black background

contrast 8.40:1

Card sample

#df7bfe text on a white background

contrast 2.50:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #df7bfe

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.

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

#df7bfe, answered

What color is #df7bfe?

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

What is the RGB value of #df7bfe?

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

Is #df7bfe a light or a dark color?

It is a mid-tone. Relative luminance is 0.3701 and perceived brightness is 69%, so black text on it reaches 8.40:1.

Should I use black or white text on #df7bfe?

Black. It scores 8.40:1 against #df7bfe, versus 2.50:1 for white — AAA at any size.

What is the complementary color of #df7bfe?

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

What colors go well with #df7bfe?

For interface work: #F9F4FA as the surface, #E2C0ED for borders, #884B9B for secondary text, #64CC00 as an accent and #61017F for hover and pressed states. For a palette, the analogous pair #9D7BFE and #FE7BDB stays calm, while #9AFE7B is the loudest partner.

What is #df7bfe in CMYK for printing?

cmyk(12%, 52%, 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 #df7bfe 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 #FE7BED; nudged cooler, #AF7AFF.

Work with #df7bfe in the Color Lab