Skip to content

#cbaff2

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

RGB
203, 175, 242
HSL
265°, 72%, 82%
CMYK
16, 28, 0, 5
Luminance
0.4977

Every format

HEX#cbaff2
RGBrgb(203, 175, 242)
HSLhsl(265, 72%, 82%)
CMYKcmyk(16%, 28%, 0%, 5%)
LABlab(75.9 22.9 -29.6)
LCHlch(75.9 37.5 307.7)
OKLCHoklch(0.801 0.097 303.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cbaff2 on white: 1.92:1
AA ✗ fail · AA-large · AAA
Aa
#cbaff2 on black: 10.95:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red79.6%
Green68.6%
Blue94.9%

CMYK percentages

Cyan16.1%
Magenta27.7%
Yellow0.0%
Key (black)5.1%

Color previews

#cbaff2 text on a black background

contrast 10.95:1

Card sample

#cbaff2 text on a white background

contrast 1.92:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cbaff2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cbaff2 in the Color Lab