Skip to content

#af32ef

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

RGB
175, 50, 239
HSL
280°, 86%, 57%
CMYK
27, 79, 0, 6
Luminance
0.1763

Every format

HEX#af32ef
RGBrgb(175, 50, 239)
HSLhsl(280, 86%, 57%)
CMYKcmyk(27%, 79%, 0%, 6%)
LABlab(49.0 76.0 -70.7)
LCHlch(49.0 103.8 317.0)
OKLCHoklch(0.595 0.264 310.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af32ef on white: 4.64:1
AA ✓ pass · AA-large · AAA
Aa
#af32ef on black: 4.53:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green19.6%
Blue93.7%

CMYK percentages

Cyan26.8%
Magenta79.1%
Yellow0.0%
Key (black)6.3%

Color previews

#af32ef text on a black background

contrast 4.53:1

Card sample

#af32ef text on a white background

contrast 4.64:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af32ef

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af32ef in the Color Lab