Skip to content

#ac45c2

a balanced, vivid violet · warm · closest name: orchid

RGB
172, 69, 194
HSL
289°, 51%, 52%
CMYK
11, 64, 0, 24
Luminance
0.1692

Every format

HEX#ac45c2
RGBrgb(172, 69, 194)
HSLhsl(289, 51%, 52%)
CMYKcmyk(11%, 64%, 0%, 24%)
LABlab(48.2 59.6 -46.5)
LCHlch(48.2 75.6 322.0)
OKLCHoklch(0.579 0.203 320.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac45c2 on white: 4.79:1
AA ✓ pass · AA-large · AAA
Aa
#ac45c2 on black: 4.38:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green27.1%
Blue76.1%

CMYK percentages

Cyan11.3%
Magenta64.4%
Yellow0.0%
Key (black)23.9%

Color previews

#ac45c2 text on a black background

contrast 4.38:1

Card sample

#ac45c2 text on a white background

contrast 4.79:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac45c2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac45c2 in the Color Lab