Skip to content

#cab2fd

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

RGB
202, 178, 253
HSL
259°, 95%, 85%
CMYK
20, 30, 0, 1
Luminance
0.5149

Every format

HEX#cab2fd
RGBrgb(202, 178, 253)
HSLhsl(259, 95%, 85%)
CMYKcmyk(20%, 30%, 0%, 1%)
LABlab(77.0 23.4 -34.0)
LCHlch(77.0 41.2 304.5)
OKLCHoklch(0.811 0.107 298.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cab2fd on white: 1.86:1
AA ✗ fail · AA-large · AAA
Aa
#cab2fd on black: 11.30:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red79.2%
Green69.8%
Blue99.2%

CMYK percentages

Cyan20.2%
Magenta29.6%
Yellow0.0%
Key (black)0.8%

Color previews

#cab2fd text on a black background

contrast 11.30:1

Card sample

#cab2fd text on a white background

contrast 1.86:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cab2fd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cab2fd in the Color Lab