Skip to content

#ce2af7

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

RGB
206, 42, 247
HSL
288°, 93%, 57%
CMYK
17, 83, 0, 3
Luminance
0.2149

Every format

HEX#ce2af7
RGBrgb(206, 42, 247)
HSLhsl(288, 93%, 57%)
CMYKcmyk(17%, 83%, 0%, 3%)
LABlab(53.5 84.5 -67.8)
LCHlch(53.5 108.3 321.3)
OKLCHoklch(0.637 0.286 318.0)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red80.8%
Green16.5%
Blue96.9%

CMYK percentages

Cyan16.6%
Magenta83.0%
Yellow0.0%
Key (black)3.1%

Color previews

#ce2af7 text on a black background

contrast 5.30:1

Card sample

#ce2af7 text on a white background

contrast 3.96:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ce2af7

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ce2af7 in the Color Lab