Skip to content

#ca2eee

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

RGB
202, 46, 238
HSL
289°, 85%, 56%
CMYK
15, 81, 0, 7
Luminance
0.2068

Every format

HEX#ca2eee
RGBrgb(202, 46, 238)
HSLhsl(289, 85%, 56%)
CMYKcmyk(15%, 81%, 0%, 7%)
LABlab(52.6 81.4 -64.2)
LCHlch(52.6 103.7 321.7)
OKLCHoklch(0.628 0.275 318.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ca2eee on white: 4.09:1
AA ✗ fail · AA-large · AAA
Aa
#ca2eee on black: 5.14:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red79.2%
Green18.0%
Blue93.3%

CMYK percentages

Cyan15.1%
Magenta80.7%
Yellow0.0%
Key (black)6.7%

Color previews

#ca2eee text on a black background

contrast 5.14:1

Card sample

#ca2eee text on a white background

contrast 4.09:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ca2eee

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ca2eee in the Color Lab