Skip to content

#dfaffe

a light, electric violet · warm · closest name: plum

RGB
223, 175, 254
HSL
277°, 98%, 84%
CMYK
12, 31, 0, 0
Luminance
0.5350

Every format

HEX#dfaffe
RGBrgb(223, 175, 254)
HSLhsl(277, 98%, 84%)
CMYKcmyk(12%, 31%, 0%, 0%)
LABlab(78.2 31.5 -32.5)
LCHlch(78.2 45.3 314.1)
OKLCHoklch(0.824 0.119 311.6)

Copy-ready code

/* CSS */
color: #dfaffe;
background-color: #dfaffe;
/* Tailwind (arbitrary) */
class="text-[#dfaffe] bg-[#dfaffe]"
/* SCSS */
$brand: #dfaffe;
/* SwiftUI */
Color(red: 0.875, green: 0.686, blue: 0.996)
/* Android */
Color.parseColor("#dfaffe")

Accessibility — WCAG contrast

Aa
#dfaffe on white: 1.79:1
AA ✗ fail · AA-large · AAA
Aa
#dfaffe on black: 11.70:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green68.6%
Blue99.6%

CMYK percentages

Cyan12.2%
Magenta31.1%
Yellow0.0%
Key (black)0.4%

Color previews

#dfaffe text on a black background

contrast 11.70:1

Card sample

#dfaffe text on a white background

contrast 1.79:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dfaffe

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfaffe in the Color Lab