Skip to content

#cb9dfd

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

RGB
203, 157, 253
HSL
269°, 96%, 80%
CMYK
20, 38, 0, 1
Luminance
0.4390

Every format

HEX#cb9dfd
RGBrgb(203, 157, 253)
HSLhsl(269, 96%, 80%)
CMYKcmyk(20%, 38%, 0%, 1%)
LABlab(72.2 35.1 -41.4)
LCHlch(72.2 54.3 310.3)
OKLCHoklch(0.774 0.141 305.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cb9dfd on white: 2.15:1
AA ✗ fail · AA-large · AAA
Aa
#cb9dfd on black: 9.78:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red79.6%
Green61.6%
Blue99.2%

CMYK percentages

Cyan19.8%
Magenta37.9%
Yellow0.0%
Key (black)0.8%

Color previews

#cb9dfd text on a black background

contrast 9.78:1

Card sample

#cb9dfd text on a white background

contrast 2.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(203, 157, 253, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(203, 157, 253, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cb9dfd;
background: linear-gradient(135deg, #cb9dfd, #FD9DEF);

Monochromatic scale

Palettes built from #cb9dfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cb9dfd in the Color Lab