Skip to content

#ac7ccc

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

RGB
172, 124, 204
HSL
276°, 44%, 64%
CMYK
16, 39, 0, 20
Luminance
0.2755

Every format

HEX#ac7ccc
RGBrgb(172, 124, 204)
HSLhsl(276, 44%, 64%)
CMYKcmyk(16%, 39%, 0%, 20%)
LABlab(59.5 33.5 -34.4)
LCHlch(59.5 48.0 314.2)
OKLCHoklch(0.664 0.126 310.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac7ccc on white: 3.23:1
AA ✗ fail · AA-large · AAA
Aa
#ac7ccc on black: 6.51:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green48.6%
Blue80.0%

CMYK percentages

Cyan15.7%
Magenta39.2%
Yellow0.0%
Key (black)20.0%

Color previews

#ac7ccc text on a black background

contrast 6.51:1

Card sample

#ac7ccc text on a white background

contrast 3.23:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac7ccc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac7ccc in the Color Lab