Skip to content

#af32ff

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

RGB
175, 50, 255
HSL
277°, 100%, 60%
CMYK
31, 80, 0, 0
Luminance
0.1862

Every format

HEX#af32ff
RGBrgb(175, 50, 255)
HSLhsl(277, 100%, 60%)
CMYKcmyk(31%, 80%, 0%, 0%)
LABlab(50.2 79.2 -77.7)
LCHlch(50.2 110.9 315.5)
OKLCHoklch(0.607 0.278 307.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af32ff on white: 4.45:1
AA ✗ fail · AA-large · AAA
Aa
#af32ff on black: 4.72:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green19.6%
Blue100.0%

CMYK percentages

Cyan31.4%
Magenta80.4%
Yellow0.0%
Key (black)0.0%

Color previews

#af32ff text on a black background

contrast 4.72:1

Card sample

#af32ff text on a white background

contrast 4.45:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af32ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af32ff in the Color Lab