Skip to content

#cba2f1

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

RGB
203, 162, 241
HSL
271°, 74%, 79%
CMYK
16, 33, 0, 6
Luminance
0.4489

Every format

HEX#cba2f1
RGBrgb(203, 162, 241)
HSLhsl(271, 74%, 79%)
CMYKcmyk(16%, 33%, 0%, 6%)
LABlab(72.8 29.8 -33.9)
LCHlch(72.8 45.1 311.3)
OKLCHoklch(0.777 0.118 307.6)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red79.6%
Green63.5%
Blue94.5%

CMYK percentages

Cyan15.8%
Magenta32.8%
Yellow0.0%
Key (black)5.5%

Color previews

#cba2f1 text on a black background

contrast 9.98:1

Card sample

#cba2f1 text on a white background

contrast 2.10:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cba2f1

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cba2f1 in the Color Lab