Skip to content

#af7fd0

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

RGB
175, 127, 208
HSL
276°, 46%, 66%
CMYK
16, 39, 0, 18
Luminance
0.2885

Every format

HEX#af7fd0
RGBrgb(175, 127, 208)
HSLhsl(276, 46%, 66%)
CMYKcmyk(16%, 39%, 0%, 18%)
LABlab(60.6 33.6 -34.8)
LCHlch(60.6 48.3 314.0)
OKLCHoklch(0.674 0.127 310.6)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red68.6%
Green49.8%
Blue81.6%

CMYK percentages

Cyan15.9%
Magenta38.9%
Yellow0.0%
Key (black)18.4%

Color previews

#af7fd0 text on a black background

contrast 6.77:1

Card sample

#af7fd0 text on a white background

contrast 3.10:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af7fd0

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af7fd0 in the Color Lab