Skip to content

#ac7eb8

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

RGB
172, 126, 184
HSL
288°, 29%, 61%
CMYK
7, 32, 0, 28
Luminance
0.2715

Every format

HEX#ac7eb8
RGBrgb(172, 126, 184)
HSLhsl(288, 29%, 61%)
CMYKcmyk(7%, 32%, 0%, 28%)
LABlab(59.1 28.1 -23.6)
LCHlch(59.1 36.7 320.0)
OKLCHoklch(0.659 0.098 319.2)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red67.5%
Green49.4%
Blue72.2%

CMYK percentages

Cyan6.5%
Magenta31.5%
Yellow0.0%
Key (black)27.8%

Color previews

#ac7eb8 text on a black background

contrast 6.43:1

Card sample

#ac7eb8 text on a white background

contrast 3.27:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac7eb8

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac7eb8 in the Color Lab