Skip to content

#af2ecd

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

RGB
175, 46, 205
HSL
289°, 63%, 49%
CMYK
15, 78, 0, 20
Luminance
0.1548

Every format

HEX#af2ecd
RGBrgb(175, 46, 205)
HSLhsl(289, 63%, 49%)
CMYKcmyk(15%, 78%, 0%, 20%)
LABlab(46.3 70.7 -55.8)
LCHlch(46.3 90.1 321.7)
OKLCHoklch(0.568 0.239 319.0)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red68.6%
Green18.0%
Blue80.4%

CMYK percentages

Cyan14.6%
Magenta77.6%
Yellow0.0%
Key (black)19.6%

Color previews

#af2ecd text on a black background

contrast 4.10:1

Card sample

#af2ecd text on a white background

contrast 5.13:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af2ecd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af2ecd in the Color Lab