Skip to content

#af2df1

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

RGB
175, 45, 241
HSL
280°, 88%, 56%
CMYK
27, 81, 0, 6
Luminance
0.1734

Every format

HEX#af2df1
RGBrgb(175, 45, 241)
HSLhsl(280, 88%, 56%)
CMYKcmyk(27%, 81%, 0%, 6%)
LABlab(48.7 77.8 -72.4)
LCHlch(48.7 106.3 317.1)
OKLCHoklch(0.593 0.270 310.3)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red68.6%
Green17.6%
Blue94.5%

CMYK percentages

Cyan27.4%
Magenta81.3%
Yellow0.0%
Key (black)5.5%

Color previews

#af2df1 text on a black background

contrast 4.47:1

Card sample

#af2df1 text on a white background

contrast 4.70:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af2df1

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af2df1 in the Color Lab