Skip to content

#d4baff

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

RGB
212, 186, 255
HSL
263°, 100%, 87%
CMYK
17, 27, 0, 0
Luminance
0.5633

Every format

HEX#d4baff
RGBrgb(212, 186, 255)
HSLhsl(263, 100%, 87%)
CMYKcmyk(17%, 27%, 0%, 0%)
LABlab(79.8 22.4 -30.6)
LCHlch(79.8 38.0 306.2)
OKLCHoklch(0.835 0.099 301.6)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red83.1%
Green72.9%
Blue100.0%

CMYK percentages

Cyan16.9%
Magenta27.1%
Yellow0.0%
Key (black)0.0%

Color previews

#d4baff text on a black background

contrast 12.27:1

Card sample

#d4baff text on a white background

contrast 1.71:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d4baff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d4baff in the Color Lab