Skip to content

#cba7ff

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

RGB
203, 167, 255
HSL
265°, 100%, 83%
CMYK
20, 35, 0, 0
Luminance
0.4755

Every format

HEX#cba7ff
RGBrgb(203, 167, 255)
HSLhsl(265, 100%, 83%)
CMYKcmyk(20%, 35%, 0%, 0%)
LABlab(74.5 30.1 -38.8)
LCHlch(74.5 49.1 307.8)
OKLCHoklch(0.792 0.127 302.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cba7ff on white: 2.00:1
AA ✗ fail · AA-large · AAA
Aa
#cba7ff on black: 10.51:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red79.6%
Green65.5%
Blue100.0%

CMYK percentages

Cyan20.4%
Magenta34.5%
Yellow0.0%
Key (black)0.0%

Color previews

#cba7ff text on a black background

contrast 10.51:1

Card sample

#cba7ff text on a white background

contrast 2.00:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cba7ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cba7ff in the Color Lab