Skip to content

#cba5df

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

RGB
203, 165, 223
HSL
279°, 48%, 76%
CMYK
9, 26, 0, 13
Luminance
0.4493

Every format

HEX#cba5df
RGBrgb(203, 165, 223)
HSLhsl(279, 48%, 76%)
CMYKcmyk(9%, 26%, 0%, 13%)
LABlab(72.8 24.4 -24.0)
LCHlch(72.8 34.3 315.4)
OKLCHoklch(0.775 0.091 313.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cba5df on white: 2.10:1
AA ✗ fail · AA-large · AAA
Aa
#cba5df on black: 9.99:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red79.6%
Green64.7%
Blue87.5%

CMYK percentages

Cyan9.0%
Magenta26.0%
Yellow0.0%
Key (black)12.5%

Color previews

#cba5df text on a black background

contrast 9.99:1

Card sample

#cba5df text on a white background

contrast 2.10:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cba5df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cba5df in the Color Lab