Skip to content

#d2bafe

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

RGB
210, 186, 254
HSL
261°, 97%, 86%
CMYK
17, 27, 0, 0
Luminance
0.5598

Every format

HEX#d2bafe
RGBrgb(210, 186, 254)
HSLhsl(261, 97%, 86%)
CMYKcmyk(17%, 27%, 0%, 0%)
LABlab(79.6 21.6 -30.4)
LCHlch(79.6 37.3 305.4)
OKLCHoklch(0.833 0.097 300.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d2bafe on white: 1.72:1
AA ✗ fail · AA-large · AAA
Aa
#d2bafe on black: 12.20:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red82.4%
Green72.9%
Blue99.6%

CMYK percentages

Cyan17.3%
Magenta26.8%
Yellow0.0%
Key (black)0.4%

Color previews

#d2bafe text on a black background

contrast 12.20:1

Card sample

#d2bafe text on a white background

contrast 1.72:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d2bafe

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d2bafe in the Color Lab