Skip to content

#af1cd2

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

RGB
175, 28, 210
HSL
289°, 77%, 47%
CMYK
17, 87, 0, 18
Luminance
0.1460

Every format

HEX#af1cd2
RGBrgb(175, 28, 210)
HSLhsl(289, 77%, 47%)
CMYKcmyk(17%, 87%, 0%, 18%)
LABlab(45.1 76.1 -60.6)
LCHlch(45.1 97.3 321.5)
OKLCHoklch(0.561 0.257 318.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af1cd2 on white: 5.36:1
AA ✓ pass · AA-large · AAA
Aa
#af1cd2 on black: 3.92:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green11.0%
Blue82.4%

CMYK percentages

Cyan16.7%
Magenta86.7%
Yellow0.0%
Key (black)17.6%

Color previews

#af1cd2 text on a black background

contrast 3.92:1

Card sample

#af1cd2 text on a white background

contrast 5.36:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af1cd2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af1cd2 in the Color Lab