Skip to content

#af80c7

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

RGB
175, 128, 199
HSL
280°, 39%, 64%
CMYK
12, 36, 0, 22
Luminance
0.2868

Every format

HEX#af80c7
RGBrgb(175, 128, 199)
HSLhsl(280, 39%, 64%)
CMYKcmyk(12%, 36%, 0%, 22%)
LABlab(60.5 31.1 -29.9)
LCHlch(60.5 43.1 316.0)
OKLCHoklch(0.672 0.114 313.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af80c7 on white: 3.12:1
AA ✗ fail · AA-large · AAA
Aa
#af80c7 on black: 6.74:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green50.2%
Blue78.0%

CMYK percentages

Cyan12.1%
Magenta35.7%
Yellow0.0%
Key (black)22.0%

Color previews

#af80c7 text on a black background

contrast 6.74:1

Card sample

#af80c7 text on a white background

contrast 3.12:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af80c7

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af80c7 in the Color Lab