Skip to content

#af2cdc

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

RGB
175, 44, 220
HSL
285°, 72%, 52%
CMYK
21, 80, 0, 14
Luminance
0.1608

Every format

HEX#af2cdc
RGBrgb(175, 44, 220)
HSLhsl(285, 72%, 52%)
CMYKcmyk(21%, 80%, 0%, 14%)
LABlab(47.1 74.1 -63.1)
LCHlch(47.1 97.3 319.6)
OKLCHoklch(0.577 0.253 315.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af2cdc on white: 4.98:1
AA ✓ pass · AA-large · AAA
Aa
#af2cdc on black: 4.22:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green17.3%
Blue86.3%

CMYK percentages

Cyan20.5%
Magenta80.0%
Yellow0.0%
Key (black)13.7%

Color previews

#af2cdc text on a black background

contrast 4.22:1

Card sample

#af2cdc text on a white background

contrast 4.98:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af2cdc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af2cdc in the Color Lab