Skip to content

#af2cd0

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

RGB
175, 44, 208
HSL
288°, 65%, 49%
CMYK
16, 79, 0, 18
Luminance
0.1547

Every format

HEX#af2cd0
RGBrgb(175, 44, 208)
HSLhsl(288, 65%, 49%)
CMYKcmyk(16%, 79%, 0%, 18%)
LABlab(46.3 71.9 -57.6)
LCHlch(46.3 92.1 321.3)
OKLCHoklch(0.569 0.244 318.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af2cd0 on white: 5.13:1
AA ✓ pass · AA-large · AAA
Aa
#af2cd0 on black: 4.09:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green17.3%
Blue81.6%

CMYK percentages

Cyan15.9%
Magenta78.8%
Yellow0.0%
Key (black)18.4%

Color previews

#af2cd0 text on a black background

contrast 4.09:1

Card sample

#af2cd0 text on a white background

contrast 5.13:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af2cd0

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af2cd0 in the Color Lab