Skip to content

#ca2fff

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

RGB
202, 47, 255
HSL
285°, 100%, 59%
CMYK
21, 82, 0, 0
Luminance
0.2181

Every format

HEX#ca2fff
RGBrgb(202, 47, 255)
HSLhsl(285, 100%, 59%)
CMYKcmyk(21%, 82%, 0%, 0%)
LABlab(53.8 84.1 -71.7)
LCHlch(53.8 110.5 319.5)
OKLCHoklch(0.640 0.287 315.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ca2fff on white: 3.92:1
AA ✗ fail · AA-large · AAA
Aa
#ca2fff on black: 5.36:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red79.2%
Green18.4%
Blue100.0%

CMYK percentages

Cyan20.8%
Magenta81.6%
Yellow0.0%
Key (black)0.0%

Color previews

#ca2fff text on a black background

contrast 5.36:1

Card sample

#ca2fff text on a white background

contrast 3.92:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ca2fff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ca2fff in the Color Lab