Skip to content

#cab2dc

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

RGB
202, 178, 220
HSL
274°, 38%, 78%
CMYK
8, 19, 0, 14
Luminance
0.4956

Every format

HEX#cab2dc
RGBrgb(202, 178, 220)
HSLhsl(274, 38%, 78%)
CMYKcmyk(8%, 19%, 0%, 14%)
LABlab(75.8 16.4 -17.9)
LCHlch(75.8 24.3 312.4)
OKLCHoklch(0.798 0.064 310.6)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red79.2%
Green69.8%
Blue86.3%

CMYK percentages

Cyan8.2%
Magenta19.1%
Yellow0.0%
Key (black)13.7%

Color previews

#cab2dc text on a black background

contrast 10.91:1

Card sample

#cab2dc text on a white background

contrast 1.92:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(202, 178, 220, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(202, 178, 220, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cab2dc;
background: linear-gradient(135deg, #cab2dc, #DCB2D2);

Monochromatic scale

Palettes built from #cab2dc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cab2dc in the Color Lab