Skip to content

#cba8df

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

RGB
203, 168, 223
HSL
278°, 46%, 77%
CMYK
9, 25, 0, 13
Luminance
0.4603

Every format

HEX#cba8df
RGBrgb(203, 168, 223)
HSLhsl(278, 46%, 77%)
CMYKcmyk(9%, 25%, 0%, 13%)
LABlab(73.6 22.8 -22.9)
LCHlch(73.6 32.3 314.7)
OKLCHoklch(0.781 0.085 313.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cba8df on white: 2.06:1
AA ✗ fail · AA-large · AAA
Aa
#cba8df on black: 10.21:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red79.6%
Green65.9%
Blue87.5%

CMYK percentages

Cyan9.0%
Magenta24.7%
Yellow0.0%
Key (black)12.5%

Color previews

#cba8df text on a black background

contrast 10.21:1

Card sample

#cba8df text on a white background

contrast 2.06:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cba8df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cba8df in the Color Lab