Skip to content

#cdbaf8

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

RGB
205, 186, 248
HSL
258°, 82%, 85%
CMYK
17, 25, 0, 3
Luminance
0.5487

Every format

HEX#cdbaf8
RGBrgb(205, 186, 248)
HSLhsl(258, 82%, 85%)
CMYKcmyk(17%, 25%, 0%, 3%)
LABlab(79.0 18.8 -28.2)
LCHlch(79.0 33.9 303.7)
OKLCHoklch(0.826 0.088 298.5)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red80.4%
Green72.9%
Blue97.3%

CMYK percentages

Cyan17.3%
Magenta25.0%
Yellow0.0%
Key (black)2.7%

Color previews

#cdbaf8 text on a black background

contrast 11.97:1

Card sample

#cdbaf8 text on a white background

contrast 1.75:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cdbaf8

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cdbaf8 in the Color Lab