Skip to content

#cb9fec

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

RGB
203, 159, 236
HSL
274°, 67%, 78%
CMYK
14, 33, 0, 8
Luminance
0.4355

Every format

HEX#cb9fec
RGBrgb(203, 159, 236)
HSLhsl(274, 67%, 78%)
CMYKcmyk(14%, 33%, 0%, 8%)
LABlab(71.9 30.4 -32.6)
LCHlch(71.9 44.5 313.0)
OKLCHoklch(0.770 0.117 310.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cb9fec on white: 2.16:1
AA ✗ fail · AA-large · AAA
Aa
#cb9fec on black: 9.71:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red79.6%
Green62.4%
Blue92.5%

CMYK percentages

Cyan14.0%
Magenta32.6%
Yellow0.0%
Key (black)7.5%

Color previews

#cb9fec text on a black background

contrast 9.71:1

Card sample

#cb9fec text on a white background

contrast 2.16:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cb9fec

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cb9fec in the Color Lab