Skip to content

#d4afe2

a light, vivid violet · cool · closest name: Plum

RGB
212, 175, 226
HSL
284°, 47%, 79%
CMYK
6, 23, 0, 11
Luminance
0.5015

At a glance

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

Hex
#d4afe2
Hue
284°
violet
Saturation
47%
vivid
Lightness
79%
light
Brightness
89%
HSV value
Perceived
76%
weighted brightness
Luminance
0.5015
WCAG relative
Temperature
Cool
59/100 cool
Color family
Violet
Tone
Vivid
Best ink
Black
11.03:1
Closest name
Plum
ΔE2000 5.1
Where it sits
Hue284° of 360°
Saturation47%
Lightness79%
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#d4afe2
RGBrgb(212, 175, 226)
HSLhsl(284, 47%, 79%)
CMYKcmyk(6%, 23%, 0%, 11%)
LABlab(76.2 22.4 -20.6)
LCHlch(76.2 30.4 317.5)
OKLCHoklch(0.803 0.081 316.7)
Decimal13938658
Display P3color(display-p3 0.831 0.686 0.886)

Copy-ready code

/* CSS */
color: #d4afe2;
background-color: #d4afe2;
/* Tailwind (arbitrary) */
class="text-[#d4afe2] bg-[#d4afe2]"
/* SCSS */
$brand: #d4afe2;
/* SwiftUI */
Color(red: 0.831, green: 0.686, blue: 0.886)
/* Android */
Color.parseColor("#d4afe2")
/* Flutter */
Color(0xFFD4AFE2)
/* Python / OpenCV (BGR) */
(226, 175, 212)

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

Accessibility — WCAG contrast

Aa
#d4afe2 on white: 1.90:1
AA ✗ fail · AA-large · AAA
Aa
#d4afe2 on black: 11.03:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #A9B9E4
deuteranopia · #B1BDE0
tritanopia · #D4B5C1

Color scale — 50 to 950

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

#F9F5FA
#F2EAF5
#E4D0EC
#d4afe2
#BD83D2
#A65AC3
#9441B4
#7B3696
#632B78
#492358
#2E1637
Base = 300Lightest = 50 · #F9F5FADarkest = 950 · #2E1637
:root {
  --brand-50: #F9F5FA;
  --brand-100: #F2EAF5;
  --brand-200: #E4D0EC;
  --brand-300: #d4afe2;
  --brand-400: #BD83D2;
  --brand-500: #A65AC3;
  --brand-600: #9441B4;
  --brand-700: #7B3696;
  --brand-800: #632B78;
  --brand-900: #492358;
  --brand-950: #2E1637;
  --brand: #d4afe2;
  --brand-ink: #000000;
}

Colors that work with #d4afe2

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#DFC3E9
Hairlines and dividers
Muted text#854B9B
Captions on the surface
Accent#699A32
Second voice, not a rival
Dark variant#4D225E
Hover, pressed, headers
Light variant#F5ECF8
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 #d4afe2

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#BDE2AF
Analogous left#BAAFE2
Analogous right#E2AFD6
Split-complement 1#D6E2AF
Split-complement 2#AFE2BA
Triadic 1#E2D4AF
Triadic 2#AFE2D4
Tetradic#E2BAAF

RGB percentages

Red83.1%
Green68.6%
Blue88.6%

CMYK percentages

Cyan6.2%
Magenta22.6%
Yellow0.0%
Key (black)11.4%

Color previews

#d4afe2 text on a black background

contrast 11.03:1

Card sample

#d4afe2 text on a white background

contrast 1.90:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(212, 175, 226, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(212, 175, 226, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d4afe2;
background: linear-gradient(135deg, #d4afe2, #E2AFCE);

Monochromatic scale

Palettes built from #d4afe2

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.

#d4afe2 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

Converts to four-color process without much drama. Proof it anyway.

#d4afe2, answered

What color is #d4afe2?

#d4afe2 is a light vivid violet, closest to Plum (ΔE2000 5.1). It sits at 284° on the hue wheel with 47% saturation and 79% lightness, which reads as cool.

What is the RGB value of #d4afe2?

rgb(212, 175, 226) — 212 red, 175 green and 226 blue out of 255, or 83.1% / 68.6% / 88.6% by channel.

Is #d4afe2 a light or a dark color?

It is a light color. Relative luminance is 0.5015 and perceived brightness is 76%, so black text on it reaches 11.03:1.

Should I use black or white text on #d4afe2?

Black. It scores 11.03:1 against #d4afe2, versus 1.90:1 for white — AAA at any size.

What is the complementary color of #d4afe2?

#BDE2AF sits directly opposite on the wheel. Softer options are the split-complements #D6E2AF and #AFE2BA, which give the same contrast with far less vibration.

What colors go well with #d4afe2?

For interface work: #F9F4FA as the surface, #DFC3E9 for borders, #854B9B for secondary text, #699A32 as an accent and #4D225E for hover and pressed states. For a palette, the analogous pair #BAAFE2 and #E2AFD6 stays calm, while #BDE2AF is the loudest partner.

What is #d4afe2 in CMYK for printing?

cmyk(6%, 23%, 0%, 11%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #d4afe2 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 #E2AFDD; nudged cooler, #C1AEE3.

Work with #d4afe2 in the Color Lab