Skip to content

#af20fc

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

RGB
175, 32, 252
HSL
279°, 97%, 56%
CMYK
31, 87, 0, 1
Luminance
0.1718

Every format

HEX#af20fc
RGBrgb(175, 32, 252)
HSLhsl(279, 97%, 56%)
CMYKcmyk(31%, 87%, 0%, 1%)
LABlab(48.5 83.0 -78.9)
LCHlch(48.5 114.6 316.5)
OKLCHoklch(0.594 0.287 308.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af20fc on white: 4.74:1
AA ✓ pass · AA-large · AAA
Aa
#af20fc on black: 4.44:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green12.5%
Blue98.8%

CMYK percentages

Cyan30.6%
Magenta87.3%
Yellow0.0%
Key (black)1.2%

Color previews

#af20fc text on a black background

contrast 4.44:1

Card sample

#af20fc text on a white background

contrast 4.74:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af20fc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af20fc in the Color Lab