Skip to content

#af2df6

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

RGB
175, 45, 246
HSL
279°, 92%, 57%
CMYK
29, 82, 0, 4
Luminance
0.1764

Every format

HEX#af2df6
RGBrgb(175, 45, 246)
HSLhsl(279, 92%, 57%)
CMYKcmyk(29%, 82%, 0%, 4%)
LABlab(49.1 78.8 -74.6)
LCHlch(49.1 108.5 316.6)
OKLCHoklch(0.597 0.274 309.3)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red68.6%
Green17.6%
Blue96.5%

CMYK percentages

Cyan28.9%
Magenta81.7%
Yellow0.0%
Key (black)3.5%

Color previews

#af2df6 text on a black background

contrast 4.53:1

Card sample

#af2df6 text on a white background

contrast 4.64:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af2df6

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af2df6 in the Color Lab