Skip to content

#af7fd1

a light, vivid violet · warm · closest name: plum

RGB
175, 127, 209
HSL
275°, 47%, 66%
CMYK
16, 39, 0, 18
Luminance
0.2890

Every format

HEX#af7fd1
RGBrgb(175, 127, 209)
HSLhsl(275, 47%, 66%)
CMYKcmyk(16%, 39%, 0%, 18%)
LABlab(60.7 33.8 -35.3)
LCHlch(60.7 48.8 313.8)
OKLCHoklch(0.675 0.128 310.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af7fd1 on white: 3.10:1
AA ✗ fail · AA-large · AAA
Aa
#af7fd1 on black: 6.78:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green49.8%
Blue82.0%

CMYK percentages

Cyan16.3%
Magenta39.2%
Yellow0.0%
Key (black)18.0%

Color previews

#af7fd1 text on a black background

contrast 6.78:1

Card sample

#af7fd1 text on a white background

contrast 3.10:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af7fd1

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af7fd1 in the Color Lab