Skip to content

#dc7aef

a light, electric magenta / pink · neutral · closest name: Violet

RGB
220, 122, 239
HSL
290°, 79%, 71%
CMYK
8, 49, 0, 6
Luminance
0.3537

At a glance

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

Hex
#dc7aef
Hue
290°
magenta / pink
Saturation
79%
electric
Lightness
71%
light
Brightness
94%
HSV value
Perceived
68%
weighted brightness
Luminance
0.3537
WCAG relative
Temperature
Neutral
55/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
Black
8.07:1
Closest name
Violet
ΔE2000 4
Where it sits
Hue290° of 360°
Saturation79%
Lightness71%
Temperature
Warm ← → Cool55% 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#dc7aef
RGBrgb(220, 122, 239)
HSLhsl(290, 79%, 71%)
CMYKcmyk(8%, 49%, 0%, 6%)
LABlab(66.0 55.5 -43.2)
LCHlch(66.0 70.3 322.1)
OKLCHoklch(0.730 0.190 320.9)
Decimal14449391
Display P3color(display-p3 0.863 0.478 0.937)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dc7aef on white: 2.60:1
AA ✗ fail · AA-large · AAA
Aa
#dc7aef on black: 8.07:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #6799F3
deuteranopia · #85A4EC
tritanopia · #DE8AAA

Color scale — 50 to 950

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

#FBF3FC
#F6E6F9
#EDC7F5
#E59BF3
#dc7aef
#CA37E7
#BB1ADA
#9C16B6
#7D1292
#5B1169
#390B42
Base = 400Lightest = 50 · #FBF3FCDarkest = 950 · #390B42
:root {
  --brand-50: #FBF3FC;
  --brand-100: #F6E6F9;
  --brand-200: #EDC7F5;
  --brand-300: #E59BF3;
  --brand-400: #dc7aef;
  --brand-500: #CA37E7;
  --brand-600: #BB1ADA;
  --brand-700: #9C16B6;
  --brand-800: #7D1292;
  --brand-900: #5B1169;
  --brand-950: #390B42;
  --brand: #dc7aef;
  --brand-ink: #000000;
}

Colors that work with #dc7aef

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#8E4B9B
Captions on the surface
Accent#58BA12
Second voice, not a rival
Dark variant#620E72
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 #dc7aef

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#8DEF7A
Analogous left#A27AEF
Analogous right#EF7AC7
Split-complement 1#C7EF7A
Split-complement 2#7AEFA2
Triadic 1#EFDC7A
Triadic 2#7AEFDC
Tetradic#EFA27A

RGB percentages

Red86.3%
Green47.8%
Blue93.7%

CMYK percentages

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

Color previews

#dc7aef text on a black background

contrast 8.07:1

Card sample

#dc7aef text on a white background

contrast 2.60:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dc7aef

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.

#dc7aef in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
BeautyFashionLifestyleYouth brands
Common UI roles
SurfacesBadgesHighlightsEmpty states
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#dc7aef, answered

What color is #dc7aef?

#dc7aef is a light electric magenta / pink, closest to Violet (ΔE2000 4). It sits at 290° on the hue wheel with 79% saturation and 71% lightness, which reads as neutral.

What is the RGB value of #dc7aef?

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

Is #dc7aef a light or a dark color?

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

Should I use black or white text on #dc7aef?

Black. It scores 8.07:1 against #dc7aef, versus 2.60:1 for white — AAA at any size.

What is the complementary color of #dc7aef?

#8DEF7A sits directly opposite on the wheel. Softer options are the split-complements #C7EF7A and #7AEFA2, which give the same contrast with far less vibration.

What colors go well with #dc7aef?

For interface work: #F9F4FA as the surface, #E5C0ED for borders, #8E4B9B for secondary text, #58BA12 as an accent and #620E72 for hover and pressed states. For a palette, the analogous pair #A27AEF and #EF7AC7 stays calm, while #8DEF7A is the loudest partner.

What is #dc7aef in CMYK for printing?

cmyk(8%, 49%, 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 #dc7aef warm or cool?

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

Work with #dc7aef in the Color Lab