Skip to content

#cba5ff

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

RGB
203, 165, 255
HSL
265°, 100%, 82%
CMYK
20, 35, 0, 0
Luminance
0.4683

Every format

HEX#cba5ff
RGBrgb(203, 165, 255)
HSLhsl(265, 100%, 82%)
CMYKcmyk(20%, 35%, 0%, 0%)
LABlab(74.1 31.2 -39.5)
LCHlch(74.1 50.4 308.3)
OKLCHoklch(0.789 0.130 302.9)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red79.6%
Green64.7%
Blue100.0%

CMYK percentages

Cyan20.4%
Magenta35.3%
Yellow0.0%
Key (black)0.0%

Color previews

#cba5ff text on a black background

contrast 10.37:1

Card sample

#cba5ff text on a white background

contrast 2.03:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cba5ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cba5ff in the Color Lab