Skip to content

#af32fc

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

RGB
175, 50, 252
HSL
277°, 97%, 59%
CMYK
31, 80, 0, 1
Luminance
0.1842

Every format

HEX#af32fc
RGBrgb(175, 50, 252)
HSLhsl(277, 97%, 59%)
CMYKcmyk(31%, 80%, 0%, 1%)
LABlab(50.0 78.5 -76.4)
LCHlch(50.0 109.6 315.8)
OKLCHoklch(0.605 0.275 307.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af32fc on white: 4.48:1
AA ✗ fail · AA-large · AAA
Aa
#af32fc on black: 4.68:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green19.6%
Blue98.8%

CMYK percentages

Cyan30.6%
Magenta80.2%
Yellow0.0%
Key (black)1.2%

Color previews

#af32fc text on a black background

contrast 4.68:1

Card sample

#af32fc text on a white background

contrast 4.48:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af32fc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af32fc in the Color Lab