Skip to content

#af80cf

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

RGB
175, 128, 207
HSL
276°, 45%, 66%
CMYK
16, 38, 0, 19
Luminance
0.2906

Every format

HEX#af80cf
RGBrgb(175, 128, 207)
HSLhsl(276, 45%, 66%)
CMYKcmyk(16%, 38%, 0%, 19%)
LABlab(60.8 32.8 -33.9)
LCHlch(60.8 47.2 314.0)
OKLCHoklch(0.675 0.124 310.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af80cf on white: 3.08:1
AA ✗ fail · AA-large · AAA
Aa
#af80cf on black: 6.81:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green50.2%
Blue81.2%

CMYK percentages

Cyan15.5%
Magenta38.2%
Yellow0.0%
Key (black)18.8%

Color previews

#af80cf text on a black background

contrast 6.81:1

Card sample

#af80cf text on a white background

contrast 3.08:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af80cf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af80cf in the Color Lab