Skip to content

#ca2dfb

a balanced, electric violet · warm · closest name: magenta

RGB
202, 45, 251
HSL
286°, 96%, 58%
CMYK
20, 82, 0, 2
Luminance
0.2140

Every format

HEX#ca2dfb
RGBrgb(202, 45, 251)
HSLhsl(286, 96%, 58%)
CMYKcmyk(20%, 82%, 0%, 2%)
LABlab(53.4 83.9 -70.2)
LCHlch(53.4 109.4 320.1)
OKLCHoklch(0.636 0.285 316.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ca2dfb on white: 3.98:1
AA ✗ fail · AA-large · AAA
Aa
#ca2dfb on black: 5.28:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red79.2%
Green17.6%
Blue98.4%

CMYK percentages

Cyan19.5%
Magenta82.1%
Yellow0.0%
Key (black)1.6%

Color previews

#ca2dfb text on a black background

contrast 5.28:1

Card sample

#ca2dfb text on a white background

contrast 3.98:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ca2dfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ca2dfb in the Color Lab