Skip to content

#d4bafe

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

RGB
212, 186, 254
HSL
263°, 97%, 86%
CMYK
17, 27, 0, 0
Luminance
0.5627

Every format

HEX#d4bafe
RGBrgb(212, 186, 254)
HSLhsl(263, 97%, 86%)
CMYKcmyk(17%, 27%, 0%, 0%)
LABlab(79.8 22.2 -30.1)
LCHlch(79.8 37.5 306.4)
OKLCHoklch(0.834 0.097 301.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d4bafe on white: 1.71:1
AA ✗ fail · AA-large · AAA
Aa
#d4bafe on black: 12.25:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red83.1%
Green72.9%
Blue99.6%

CMYK percentages

Cyan16.5%
Magenta26.8%
Yellow0.0%
Key (black)0.4%

Color previews

#d4bafe text on a black background

contrast 12.25:1

Card sample

#d4bafe text on a white background

contrast 1.71:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d4bafe

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d4bafe in the Color Lab