Skip to content

#cdbafb

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

RGB
205, 186, 251
HSL
258°, 89%, 86%
CMYK
18, 26, 0, 2
Luminance
0.5506

Every format

HEX#cdbafb
RGBrgb(205, 186, 251)
HSLhsl(258, 89%, 86%)
CMYKcmyk(18%, 26%, 0%, 2%)
LABlab(79.1 19.4 -29.6)
LCHlch(79.1 35.5 303.3)
OKLCHoklch(0.827 0.092 297.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cdbafb on white: 1.75:1
AA ✗ fail · AA-large · AAA
Aa
#cdbafb on black: 12.01:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.4%
Green72.9%
Blue98.4%

CMYK percentages

Cyan18.3%
Magenta25.9%
Yellow0.0%
Key (black)1.6%

Color previews

#cdbafb text on a black background

contrast 12.01:1

Card sample

#cdbafb text on a white background

contrast 1.75:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cdbafb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cdbafb in the Color Lab