Skip to content

#cba5fc

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

RGB
203, 165, 252
HSL
266°, 94%, 82%
CMYK
19, 35, 0, 1
Luminance
0.4664

Every format

HEX#cba5fc
RGBrgb(203, 165, 252)
HSLhsl(266, 94%, 82%)
CMYKcmyk(19%, 35%, 0%, 1%)
LABlab(74.0 30.6 -38.1)
LCHlch(74.0 48.8 308.7)
OKLCHoklch(0.788 0.127 303.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cba5fc on white: 2.03:1
AA ✗ fail · AA-large · AAA
Aa
#cba5fc on black: 10.33:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red79.6%
Green64.7%
Blue98.8%

CMYK percentages

Cyan19.4%
Magenta34.5%
Yellow0.0%
Key (black)1.2%

Color previews

#cba5fc text on a black background

contrast 10.33:1

Card sample

#cba5fc text on a white background

contrast 2.03:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cba5fc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cba5fc in the Color Lab