Skip to content

#cdbaf1

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

RGB
205, 186, 241
HSL
261°, 66%, 84%
CMYK
15, 23, 0, 6
Luminance
0.5445

Every format

HEX#cdbaf1
RGBrgb(205, 186, 241)
HSLhsl(261, 66%, 84%)
CMYKcmyk(15%, 23%, 0%, 6%)
LABlab(78.7 17.3 -24.8)
LCHlch(78.7 30.3 304.9)
OKLCHoklch(0.823 0.079 300.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cdbaf1 on white: 1.77:1
AA ✗ fail · AA-large · AAA
Aa
#cdbaf1 on black: 11.89:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.4%
Green72.9%
Blue94.5%

CMYK percentages

Cyan14.9%
Magenta22.8%
Yellow0.0%
Key (black)5.5%

Color previews

#cdbaf1 text on a black background

contrast 11.89:1

Card sample

#cdbaf1 text on a white background

contrast 1.77:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cdbaf1

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cdbaf1 in the Color Lab