Skip to content

#af3ace

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

RGB
175, 58, 206
HSL
287°, 60%, 52%
CMYK
15, 72, 0, 19
Luminance
0.1660

Every format

HEX#af3ace
RGBrgb(175, 58, 206)
HSLhsl(287, 60%, 52%)
CMYKcmyk(15%, 72%, 0%, 19%)
LABlab(47.8 66.9 -54.0)
LCHlch(47.8 86.0 321.1)
OKLCHoklch(0.579 0.228 318.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af3ace on white: 4.86:1
AA ✓ pass · AA-large · AAA
Aa
#af3ace on black: 4.32:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green22.7%
Blue80.8%

CMYK percentages

Cyan15.0%
Magenta71.8%
Yellow0.0%
Key (black)19.2%

Color previews

#af3ace text on a black background

contrast 4.32:1

Card sample

#af3ace text on a white background

contrast 4.86:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af3ace

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af3ace in the Color Lab