Skip to content

#ce2af5

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

RGB
206, 42, 245
HSL
289°, 91%, 56%
CMYK
16, 83, 0, 4
Luminance
0.2137

Every format

HEX#ce2af5
RGBrgb(206, 42, 245)
HSLhsl(289, 91%, 56%)
CMYKcmyk(16%, 83%, 0%, 4%)
LABlab(53.4 84.2 -66.9)
LCHlch(53.4 107.5 321.5)
OKLCHoklch(0.636 0.284 318.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ce2af5 on white: 3.98:1
AA ✗ fail · AA-large · AAA
Aa
#ce2af5 on black: 5.27:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.8%
Green16.5%
Blue96.1%

CMYK percentages

Cyan15.9%
Magenta82.9%
Yellow0.0%
Key (black)3.9%

Color previews

#ce2af5 text on a black background

contrast 5.27:1

Card sample

#ce2af5 text on a white background

contrast 3.98:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(206, 42, 245, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(206, 42, 245, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ce2af5;
background: linear-gradient(135deg, #ce2af5, #F52A95);

Monochromatic scale

Palettes built from #ce2af5

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ce2af5 in the Color Lab