Skip to content

#ac7bc9

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

RGB
172, 123, 201
HSL
278°, 42%, 64%
CMYK
14, 39, 0, 21
Luminance
0.2715

Every format

HEX#ac7bc9
RGBrgb(172, 123, 201)
HSLhsl(278, 42%, 64%)
CMYKcmyk(14%, 39%, 0%, 21%)
LABlab(59.1 33.4 -33.2)
LCHlch(59.1 47.1 315.1)
OKLCHoklch(0.661 0.124 312.2)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red67.5%
Green48.2%
Blue78.8%

CMYK percentages

Cyan14.4%
Magenta38.8%
Yellow0.0%
Key (black)21.2%

Color previews

#ac7bc9 text on a black background

contrast 6.43:1

Card sample

#ac7bc9 text on a white background

contrast 3.27:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac7bc9

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac7bc9 in the Color Lab