Skip to content

#af2fdc

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

RGB
175, 47, 220
HSL
284°, 71%, 52%
CMYK
21, 79, 0, 14
Luminance
0.1631

Every format

HEX#af2fdc
RGBrgb(175, 47, 220)
HSLhsl(284, 71%, 52%)
CMYKcmyk(21%, 79%, 0%, 14%)
LABlab(47.4 73.2 -62.6)
LCHlch(47.4 96.4 319.4)
OKLCHoklch(0.579 0.251 315.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af2fdc on white: 4.93:1
AA ✓ pass · AA-large · AAA
Aa
#af2fdc on black: 4.26:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green18.4%
Blue86.3%

CMYK percentages

Cyan20.5%
Magenta78.6%
Yellow0.0%
Key (black)13.7%

Color previews

#af2fdc text on a black background

contrast 4.26:1

Card sample

#af2fdc text on a white background

contrast 4.93:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af2fdc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af2fdc in the Color Lab