Skip to content

#ca2dfd

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

RGB
202, 45, 253
HSL
285°, 98%, 58%
CMYK
20, 82, 0, 1
Luminance
0.2153

Every format

HEX#ca2dfd
RGBrgb(202, 45, 253)
HSLhsl(285, 98%, 58%)
CMYKcmyk(20%, 82%, 0%, 1%)
LABlab(53.5 84.2 -71.1)
LCHlch(53.5 110.2 319.8)
OKLCHoklch(0.637 0.287 315.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ca2dfd on white: 3.96:1
AA ✗ fail · AA-large · AAA
Aa
#ca2dfd on black: 5.31:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red79.2%
Green17.6%
Blue99.2%

CMYK percentages

Cyan20.2%
Magenta82.2%
Yellow0.0%
Key (black)0.8%

Color previews

#ca2dfd text on a black background

contrast 5.31:1

Card sample

#ca2dfd text on a white background

contrast 3.96:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ca2dfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ca2dfd in the Color Lab