Skip to content

#af20f4

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

RGB
175, 32, 244
HSL
281°, 91%, 54%
CMYK
28, 87, 0, 4
Luminance
0.1668

Every format

HEX#af20f4
RGBrgb(175, 32, 244)
HSLhsl(281, 91%, 54%)
CMYKcmyk(28%, 87%, 0%, 4%)
LABlab(47.9 81.5 -75.5)
LCHlch(47.9 111.1 317.2)
OKLCHoklch(0.588 0.281 310.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af20f4 on white: 4.84:1
AA ✓ pass · AA-large · AAA
Aa
#af20f4 on black: 4.34:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green12.5%
Blue95.7%

CMYK percentages

Cyan28.3%
Magenta86.9%
Yellow0.0%
Key (black)4.3%

Color previews

#af20f4 text on a black background

contrast 4.34:1

Card sample

#af20f4 text on a white background

contrast 4.84:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af20f4

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af20f4 in the Color Lab