Skip to content

#af20ec

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

RGB
175, 32, 236
HSL
282°, 84%, 53%
CMYK
26, 86, 0, 8
Luminance
0.1620

Every format

HEX#af20ec
RGBrgb(175, 32, 236)
HSLhsl(282, 84%, 53%)
CMYKcmyk(26%, 86%, 0%, 8%)
LABlab(47.2 80.0 -72.0)
LCHlch(47.2 107.6 318.0)
OKLCHoklch(0.582 0.275 311.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af20ec on white: 4.95:1
AA ✓ pass · AA-large · AAA
Aa
#af20ec on black: 4.24:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green12.5%
Blue92.5%

CMYK percentages

Cyan25.8%
Magenta86.4%
Yellow0.0%
Key (black)7.5%

Color previews

#af20ec text on a black background

contrast 4.24:1

Card sample

#af20ec text on a white background

contrast 4.95:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 32, 236, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 32, 236, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af20ec;
background: linear-gradient(135deg, #af20ec, #EC20A1);

Monochromatic scale

Palettes built from #af20ec

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af20ec in the Color Lab