Skip to content

#cab2ff

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

RGB
202, 178, 255
HSL
259°, 100%, 85%
CMYK
21, 30, 0, 0
Luminance
0.5162

Every format

HEX#cab2ff
RGBrgb(202, 178, 255)
HSLhsl(259, 100%, 85%)
CMYKcmyk(21%, 30%, 0%, 0%)
LABlab(77.0 23.8 -34.9)
LCHlch(77.0 42.3 304.3)
OKLCHoklch(0.811 0.109 298.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cab2ff on white: 1.85:1
AA ✗ fail · AA-large · AAA
Aa
#cab2ff on black: 11.32:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red79.2%
Green69.8%
Blue100.0%

CMYK percentages

Cyan20.8%
Magenta30.2%
Yellow0.0%
Key (black)0.0%

Color previews

#cab2ff text on a black background

contrast 11.32:1

Card sample

#cab2ff text on a white background

contrast 1.85:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cab2ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cab2ff in the Color Lab