Skip to content

#dc7fef

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

RGB
220, 127, 239
HSL
290°, 78%, 72%
CMYK
8, 47, 0, 6
Luminance
0.3663

At a glance

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

Hex
#dc7fef
Hue
290°
violet
Saturation
78%
electric
Lightness
72%
light
Brightness
94%
HSV value
Perceived
68%
weighted brightness
Luminance
0.3663
WCAG relative
Temperature
Neutral
56/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
8.33:1
Closest name
Violet
ΔE2000 3.5
Where it sits
Hue290° of 360°
Saturation78%
Lightness72%
Temperature
Warm ← → Cool56% 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#dc7fef
RGBrgb(220, 127, 239)
HSLhsl(290, 78%, 72%)
CMYKcmyk(8%, 47%, 0%, 6%)
LABlab(67.0 53.0 -41.7)
LCHlch(67.0 67.4 321.8)
OKLCHoklch(0.737 0.182 320.6)
Decimal14450671
Display P3color(display-p3 0.863 0.498 0.937)

Copy-ready code

/* CSS */
color: #dc7fef;
background-color: #dc7fef;
/* Tailwind (arbitrary) */
class="text-[#dc7fef] bg-[#dc7fef]"
/* SCSS */
$brand: #dc7fef;
/* SwiftUI */
Color(red: 0.863, green: 0.498, blue: 0.937)
/* Android */
Color.parseColor("#dc7fef")
/* Flutter */
Color(0xFFDC7FEF)
/* Python / OpenCV (BGR) */
(239, 127, 220)

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

Accessibility — WCAG contrast

Aa
#dc7fef on white: 2.52:1
AA ✗ fail · AA-large · AAA
Aa
#dc7fef on black: 8.33:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #6E9CF3
deuteranopia · #89A7EC
tritanopia · #DE8EAC

Color scale — 50 to 950

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

#FAF3FC
#F6E6F9
#EDC7F5
#E49BF3
#dc7fef
#C838E6
#B91BDA
#9A17B5
#7B1291
#5A1169
#380B42
Base = 400Lightest = 50 · #FAF3FCDarkest = 950 · #380B42
:root {
  --brand-50: #FAF3FC;
  --brand-100: #F6E6F9;
  --brand-200: #EDC7F5;
  --brand-300: #E49BF3;
  --brand-400: #dc7fef;
  --brand-500: #C838E6;
  --brand-600: #B91BDA;
  --brand-700: #9A17B5;
  --brand-800: #7B1291;
  --brand-900: #5A1169;
  --brand-950: #380B42;
  --brand: #dc7fef;
  --brand-ink: #000000;
}

Colors that work with #dc7fef

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#E5C0ED
Hairlines and dividers
Muted text#8D4B9B
Captions on the surface
Accent#59BA12
Second voice, not a rival
Dark variant#600E71
Hover, pressed, headers
Light variant#F9E8FC
Selected rows, tints
Dark surface#221424
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 #dc7fef

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#92EF7F
Analogous left#A47FEF
Analogous right#EF7FCA
Split-complement 1#CAEF7F
Split-complement 2#7FEFA4
Triadic 1#EFDC7F
Triadic 2#7FEFDC
Tetradic#EFA47F

RGB percentages

Red86.3%
Green49.8%
Blue93.7%

CMYK percentages

Cyan7.9%
Magenta46.9%
Yellow0.0%
Key (black)6.3%

Color previews

#dc7fef text on a black background

contrast 8.33:1

Card sample

#dc7fef text on a white background

contrast 2.52:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dc7fef

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.

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

#dc7fef, answered

What color is #dc7fef?

#dc7fef is a light electric violet, closest to Violet (ΔE2000 3.5). It sits at 290° on the hue wheel with 78% saturation and 72% lightness, which reads as neutral.

What is the RGB value of #dc7fef?

rgb(220, 127, 239) — 220 red, 127 green and 239 blue out of 255, or 86.3% / 49.8% / 93.7% by channel.

Is #dc7fef a light or a dark color?

It is a mid-tone. Relative luminance is 0.3663 and perceived brightness is 68%, so black text on it reaches 8.33:1.

Should I use black or white text on #dc7fef?

Black. It scores 8.33:1 against #dc7fef, versus 2.52:1 for white — AAA at any size.

What is the complementary color of #dc7fef?

#92EF7F sits directly opposite on the wheel. Softer options are the split-complements #CAEF7F and #7FEFA4, which give the same contrast with far less vibration.

What colors go well with #dc7fef?

For interface work: #F9F4FA as the surface, #E5C0ED for borders, #8D4B9B for secondary text, #59BA12 as an accent and #600E71 for hover and pressed states. For a palette, the analogous pair #A47FEF and #EF7FCA stays calm, while #92EF7F is the loudest partner.

What is #dc7fef in CMYK for printing?

cmyk(8%, 47%, 0%, 6%). 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 #dc7fef warm or cool?

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

Work with #dc7fef in the Color Lab