Skip to content

#af39ce

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

RGB
175, 57, 206
HSL
288°, 60%, 52%
CMYK
15, 72, 0, 19
Luminance
0.1650

Every format

HEX#af39ce
RGBrgb(175, 57, 206)
HSLhsl(288, 60%, 52%)
CMYKcmyk(15%, 72%, 0%, 19%)
LABlab(47.6 67.3 -54.3)
LCHlch(47.6 86.4 321.1)
OKLCHoklch(0.578 0.229 318.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af39ce on white: 4.88:1
AA ✓ pass · AA-large · AAA
Aa
#af39ce on black: 4.30:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green22.4%
Blue80.8%

CMYK percentages

Cyan15.0%
Magenta72.3%
Yellow0.0%
Key (black)19.2%

Color previews

#af39ce text on a black background

contrast 4.30:1

Card sample

#af39ce text on a white background

contrast 4.88:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af39ce

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af39ce in the Color Lab