Skip to content

#ca2df4

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

RGB
202, 45, 244
HSL
287°, 90%, 57%
CMYK
17, 82, 0, 4
Luminance
0.2096

Every format

HEX#ca2df4
RGBrgb(202, 45, 244)
HSLhsl(287, 90%, 57%)
CMYKcmyk(17%, 82%, 0%, 4%)
LABlab(52.9 82.7 -67.1)
LCHlch(52.9 106.4 320.9)
OKLCHoklch(0.631 0.280 317.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ca2df4 on white: 4.04:1
AA ✗ fail · AA-large · AAA
Aa
#ca2df4 on black: 5.19:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red79.2%
Green17.6%
Blue95.7%

CMYK percentages

Cyan17.2%
Magenta81.6%
Yellow0.0%
Key (black)4.3%

Color previews

#ca2df4 text on a black background

contrast 5.19:1

Card sample

#ca2df4 text on a white background

contrast 4.04:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ca2df4

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ca2df4 in the Color Lab