Skip to content

#ca2cff

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

RGB
202, 44, 255
HSL
285°, 100%, 59%
CMYK
21, 83, 0, 0
Luminance
0.2158

Every format

HEX#ca2cff
RGBrgb(202, 44, 255)
HSLhsl(285, 100%, 59%)
CMYKcmyk(21%, 83%, 0%, 0%)
LABlab(53.6 84.8 -72.1)
LCHlch(53.6 111.4 319.6)
OKLCHoklch(0.638 0.289 315.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ca2cff on white: 3.95:1
AA ✗ fail · AA-large · AAA
Aa
#ca2cff on black: 5.32:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red79.2%
Green17.3%
Blue100.0%

CMYK percentages

Cyan20.8%
Magenta82.7%
Yellow0.0%
Key (black)0.0%

Color previews

#ca2cff text on a black background

contrast 5.32:1

Card sample

#ca2cff text on a white background

contrast 3.95:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ca2cff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ca2cff in the Color Lab