Skip to content

#af7bc1

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

RGB
175, 123, 193
HSL
285°, 36%, 62%
CMYK
9, 36, 0, 24
Luminance
0.2713

Every format

HEX#af7bc1
RGBrgb(175, 123, 193)
HSLhsl(285, 36%, 62%)
CMYKcmyk(9%, 36%, 0%, 24%)
LABlab(59.1 32.6 -28.7)
LCHlch(59.1 43.4 318.6)
OKLCHoklch(0.660 0.116 317.1)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red68.6%
Green48.2%
Blue75.7%

CMYK percentages

Cyan9.3%
Magenta36.3%
Yellow0.0%
Key (black)24.3%

Color previews

#af7bc1 text on a black background

contrast 6.43:1

Card sample

#af7bc1 text on a white background

contrast 3.27:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af7bc1

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af7bc1 in the Color Lab