Skip to content

#cdaff2

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

RGB
205, 175, 242
HSL
267°, 72%, 82%
CMYK
15, 28, 0, 5
Luminance
0.5005

Every format

HEX#cdaff2
RGBrgb(205, 175, 242)
HSLhsl(267, 72%, 82%)
CMYKcmyk(15%, 28%, 0%, 5%)
LABlab(76.1 23.5 -29.4)
LCHlch(76.1 37.6 308.7)
OKLCHoklch(0.803 0.098 304.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cdaff2 on white: 1.91:1
AA ✗ fail · AA-large · AAA
Aa
#cdaff2 on black: 11.01:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.4%
Green68.6%
Blue94.9%

CMYK percentages

Cyan15.3%
Magenta27.7%
Yellow0.0%
Key (black)5.1%

Color previews

#cdaff2 text on a black background

contrast 11.01:1

Card sample

#cdaff2 text on a white background

contrast 1.91:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cdaff2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cdaff2 in the Color Lab