Skip to content

#af20ff

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

RGB
175, 32, 255
HSL
279°, 100%, 56%
CMYK
31, 88, 0, 0
Luminance
0.1737

Every format

HEX#af20ff
RGBrgb(175, 32, 255)
HSLhsl(279, 100%, 56%)
CMYKcmyk(31%, 88%, 0%, 0%)
LABlab(48.7 83.6 -80.2)
LCHlch(48.7 115.9 316.2)
OKLCHoklch(0.597 0.289 307.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af20ff on white: 4.69:1
AA ✓ pass · AA-large · AAA
Aa
#af20ff on black: 4.47:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green12.5%
Blue100.0%

CMYK percentages

Cyan31.4%
Magenta87.5%
Yellow0.0%
Key (black)0.0%

Color previews

#af20ff text on a black background

contrast 4.47:1

Card sample

#af20ff text on a white background

contrast 4.69:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af20ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af20ff in the Color Lab