Skip to content

#af7cbc

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

RGB
175, 124, 188
HSL
288°, 32%, 61%
CMYK
7, 34, 0, 26
Luminance
0.2716

Every format

HEX#af7cbc
RGBrgb(175, 124, 188)
HSLhsl(288, 32%, 61%)
CMYKcmyk(7%, 34%, 0%, 26%)
LABlab(59.1 31.0 -25.8)
LCHlch(59.1 40.3 320.2)
OKLCHoklch(0.660 0.108 319.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af7cbc on white: 3.26:1
AA ✗ fail · AA-large · AAA
Aa
#af7cbc on black: 6.43:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green48.6%
Blue73.7%

CMYK percentages

Cyan6.9%
Magenta34.0%
Yellow0.0%
Key (black)26.3%

Color previews

#af7cbc text on a black background

contrast 6.43:1

Card sample

#af7cbc text on a white background

contrast 3.26:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af7cbc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af7cbc in the Color Lab