Skip to content

#d1afdb

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

RGB
209, 175, 219
HSL
286°, 38%, 77%
CMYK
5, 20, 0, 14
Luminance
0.4933

Every format

HEX#d1afdb
RGBrgb(209, 175, 219)
HSLhsl(286, 38%, 77%)
CMYKcmyk(5%, 20%, 0%, 14%)
LABlab(75.7 20.1 -17.5)
LCHlch(75.7 26.7 318.9)
OKLCHoklch(0.798 0.071 318.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d1afdb on white: 1.93:1
AA ✗ fail · AA-large · AAA
Aa
#d1afdb on black: 10.87:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red82.0%
Green68.6%
Blue85.9%

CMYK percentages

Cyan4.6%
Magenta20.1%
Yellow0.0%
Key (black)14.1%

Color previews

#d1afdb text on a black background

contrast 10.87:1

Card sample

#d1afdb text on a white background

contrast 1.93:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d1afdb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d1afdb in the Color Lab