Skip to content

#af79bc

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

RGB
175, 121, 188
HSL
288°, 33%, 61%
CMYK
7, 36, 0, 26
Luminance
0.2642

Every format

HEX#af79bc
RGBrgb(175, 121, 188)
HSLhsl(288, 33%, 61%)
CMYKcmyk(7%, 36%, 0%, 26%)
LABlab(58.4 32.7 -26.9)
LCHlch(58.4 42.3 320.6)
OKLCHoklch(0.655 0.114 319.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af79bc on white: 3.34:1
AA ✗ fail · AA-large · AAA
Aa
#af79bc on black: 6.28:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green47.5%
Blue73.7%

CMYK percentages

Cyan6.9%
Magenta35.6%
Yellow0.0%
Key (black)26.3%

Color previews

#af79bc text on a black background

contrast 6.28:1

Card sample

#af79bc text on a white background

contrast 3.34:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af79bc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af79bc in the Color Lab