Skip to content

#af2dfc

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

RGB
175, 45, 252
HSL
278°, 97%, 58%
CMYK
31, 82, 0, 1
Luminance
0.1802

Every format

HEX#af2dfc
RGBrgb(175, 45, 252)
HSLhsl(278, 97%, 58%)
CMYKcmyk(31%, 82%, 0%, 1%)
LABlab(49.5 80.0 -77.2)
LCHlch(49.5 111.2 316.0)
OKLCHoklch(0.602 0.279 308.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af2dfc on white: 4.56:1
AA ✓ pass · AA-large · AAA
Aa
#af2dfc on black: 4.60:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green17.6%
Blue98.8%

CMYK percentages

Cyan30.6%
Magenta82.1%
Yellow0.0%
Key (black)1.2%

Color previews

#af2dfc text on a black background

contrast 4.60:1

Card sample

#af2dfc text on a white background

contrast 4.56:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af2dfc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af2dfc in the Color Lab