Skip to content

#af80d4

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

RGB
175, 128, 212
HSL
274°, 49%, 67%
CMYK
18, 40, 0, 17
Luminance
0.2931

Every format

HEX#af80d4
RGBrgb(175, 128, 212)
HSLhsl(274, 49%, 67%)
CMYKcmyk(18%, 40%, 0%, 17%)
LABlab(61.0 33.9 -36.4)
LCHlch(61.0 49.7 313.0)
OKLCHoklch(0.678 0.130 309.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af80d4 on white: 3.06:1
AA ✗ fail · AA-large · AAA
Aa
#af80d4 on black: 6.86:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green50.2%
Blue83.1%

CMYK percentages

Cyan17.5%
Magenta39.6%
Yellow0.0%
Key (black)16.9%

Color previews

#af80d4 text on a black background

contrast 6.86:1

Card sample

#af80d4 text on a white background

contrast 3.06:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af80d4

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af80d4 in the Color Lab