Skip to content

#af7ec4

a balanced, soft violet · warm · closest name: plum

RGB
175, 126, 196
HSL
282°, 37%, 63%
CMYK
11, 36, 0, 23
Luminance
0.2802

Every format

HEX#af7ec4
RGBrgb(175, 126, 196)
HSLhsl(282, 37%, 63%)
CMYKcmyk(11%, 36%, 0%, 23%)
LABlab(59.9 31.5 -29.1)
LCHlch(59.9 43.0 317.3)
OKLCHoklch(0.667 0.114 315.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af7ec4 on white: 3.18:1
AA ✗ fail · AA-large · AAA
Aa
#af7ec4 on black: 6.60:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green49.4%
Blue76.9%

CMYK percentages

Cyan10.7%
Magenta35.7%
Yellow0.0%
Key (black)23.1%

Color previews

#af7ec4 text on a black background

contrast 6.60:1

Card sample

#af7ec4 text on a white background

contrast 3.18:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af7ec4

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af7ec4 in the Color Lab