Skip to content

#af7fcc

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

RGB
175, 127, 204
HSL
277°, 43%, 65%
CMYK
14, 38, 0, 20
Luminance
0.2865

Every format

HEX#af7fcc
RGBrgb(175, 127, 204)
HSLhsl(277, 43%, 65%)
CMYKcmyk(14%, 38%, 0%, 20%)
LABlab(60.5 32.7 -32.8)
LCHlch(60.5 46.3 314.9)
OKLCHoklch(0.672 0.122 312.0)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red68.6%
Green49.8%
Blue80.0%

CMYK percentages

Cyan14.2%
Magenta37.7%
Yellow0.0%
Key (black)20.0%

Color previews

#af7fcc text on a black background

contrast 6.73:1

Card sample

#af7fcc text on a white background

contrast 3.12:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af7fcc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af7fcc in the Color Lab