Skip to content

#cb9afb

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

RGB
203, 154, 251
HSL
270°, 92%, 79%
CMYK
19, 39, 0, 2
Luminance
0.4277

Every format

HEX#cb9afb
RGBrgb(203, 154, 251)
HSLhsl(270, 92%, 79%)
CMYKcmyk(19%, 39%, 0%, 2%)
LABlab(71.4 36.4 -41.5)
LCHlch(71.4 55.2 311.2)
OKLCHoklch(0.768 0.143 306.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cb9afb on white: 2.20:1
AA ✗ fail · AA-large · AAA
Aa
#cb9afb on black: 9.55:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red79.6%
Green60.4%
Blue98.4%

CMYK percentages

Cyan19.1%
Magenta38.6%
Yellow0.0%
Key (black)1.6%

Color previews

#cb9afb text on a black background

contrast 9.55:1

Card sample

#cb9afb text on a white background

contrast 2.20:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cb9afb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cb9afb in the Color Lab