Skip to content

#af2df4

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

RGB
175, 45, 244
HSL
279°, 90%, 57%
CMYK
28, 82, 0, 4
Luminance
0.1752

Every format

HEX#af2df4
RGBrgb(175, 45, 244)
HSLhsl(279, 90%, 57%)
CMYKcmyk(28%, 82%, 0%, 4%)
LABlab(48.9 78.4 -73.8)
LCHlch(48.9 107.6 316.7)
OKLCHoklch(0.595 0.272 309.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af2df4 on white: 4.66:1
AA ✓ pass · AA-large · AAA
Aa
#af2df4 on black: 4.50:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green17.6%
Blue95.7%

CMYK percentages

Cyan28.3%
Magenta81.6%
Yellow0.0%
Key (black)4.3%

Color previews

#af2df4 text on a black background

contrast 4.50:1

Card sample

#af2df4 text on a white background

contrast 4.66:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af2df4

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af2df4 in the Color Lab