Skip to content

#d87afd

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

RGB
216, 122, 253
HSL
283°, 97%, 74%
CMYK
15, 52, 0, 1
Luminance
0.3561

At a glance

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

Hex
#d87afd
Hue
283°
violet
Saturation
97%
electric
Lightness
74%
light
Brightness
99%
HSV value
Perceived
68%
weighted brightness
Luminance
0.3561
WCAG relative
Temperature
Cool
59/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
8.12:1
Closest name
Violet
ΔE2000 6
Where it sits
Hue283° of 360°
Saturation97%
Lightness74%
Temperature
Warm ← → Cool59% cool

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

Every format

HEX#d87afd
RGBrgb(216, 122, 253)
HSLhsl(283, 97%, 74%)
CMYKcmyk(15%, 52%, 0%, 1%)
LABlab(66.2 57.1 -50.7)
LCHlch(66.2 76.4 318.4)
OKLCHoklch(0.733 0.202 315.6)
Decimal14187261
Display P3color(display-p3 0.847 0.478 0.992)

Copy-ready code

/* CSS */
color: #d87afd;
background-color: #d87afd;
/* Tailwind (arbitrary) */
class="text-[#d87afd] bg-[#d87afd]"
/* SCSS */
$brand: #d87afd;
/* SwiftUI */
Color(red: 0.847, green: 0.478, blue: 0.992)
/* Android */
Color.parseColor("#d87afd")
/* Flutter */
Color(0xFFD87AFD)
/* Python / OpenCV (BGR) */
(253, 122, 216)

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

Accessibility — WCAG contrast

Aa
#d87afd on white: 2.59:1
AA ✗ fail · AA-large · AAA
Aa
#d87afd on black: 8.12:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #5C9BFF
deuteranopia · #7AA4FA
tritanopia · #D68EB0

Color scale — 50 to 950

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

#FAF1FD
#F5E4FC
#EAC1FB
#d87afd
#CE59FC
#BE22FC
#AE04F1
#9103C9
#7402A1
#550774
#350448
Base = 300Lightest = 50 · #FAF1FDDarkest = 950 · #350448
:root {
  --brand-50: #FAF1FD;
  --brand-100: #F5E4FC;
  --brand-200: #EAC1FB;
  --brand-300: #d87afd;
  --brand-400: #CE59FC;
  --brand-500: #BE22FC;
  --brand-600: #AE04F1;
  --brand-700: #9103C9;
  --brand-800: #7402A1;
  --brand-900: #550774;
  --brand-950: #350448;
  --brand: #d87afd;
  --brand-ink: #000000;
}

Colors that work with #d87afd

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#E0C0ED
Hairlines and dividers
Muted text#844B9B
Captions on the surface
Accent#6DCC00
Second voice, not a rival
Dark variant#5B027E
Hover, pressed, headers
Light variant#F8E6FF
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 #d87afd

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#9FFD7A
Analogous left#967AFD
Analogous right#FD7AE0
Split-complement 1#E0FD7A
Split-complement 2#7AFD96
Triadic 1#FDD87A
Triadic 2#7AFDD8
Tetradic#FD967A

RGB percentages

Red84.7%
Green47.8%
Blue99.2%

CMYK percentages

Cyan14.6%
Magenta51.8%
Yellow0.0%
Key (black)0.8%

Color previews

#d87afd text on a black background

contrast 8.12:1

Card sample

#d87afd text on a white background

contrast 2.59:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d87afd

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.

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

#d87afd, answered

What color is #d87afd?

#d87afd is a light electric violet, closest to Violet (ΔE2000 6). It sits at 283° on the hue wheel with 97% saturation and 74% lightness, which reads as cool.

What is the RGB value of #d87afd?

rgb(216, 122, 253) — 216 red, 122 green and 253 blue out of 255, or 84.7% / 47.8% / 99.2% by channel.

Is #d87afd a light or a dark color?

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

Should I use black or white text on #d87afd?

Black. It scores 8.12:1 against #d87afd, versus 2.59:1 for white — AAA at any size.

What is the complementary color of #d87afd?

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

What colors go well with #d87afd?

For interface work: #F9F4FA as the surface, #E0C0ED for borders, #844B9B for secondary text, #6DCC00 as an accent and #5B027E for hover and pressed states. For a palette, the analogous pair #967AFD and #FD7AE0 stays calm, while #9FFD7A is the loudest partner.

What is #d87afd in CMYK for printing?

cmyk(15%, 52%, 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 #d87afd warm or cool?

Cool — it scores 59 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #FD7AF2; nudged cooler, #A879FE.

Work with #d87afd in the Color Lab