Skip to content

#ac42cd

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

RGB
172, 66, 205
HSL
286°, 58%, 53%
CMYK
16, 68, 0, 20
Luminance
0.1707

Every format

HEX#ac42cd
RGBrgb(172, 66, 205)
HSLhsl(286, 58%, 53%)
CMYKcmyk(16%, 68%, 0%, 20%)
LABlab(48.4 63.0 -52.5)
LCHlch(48.4 82.0 320.2)
OKLCHoklch(0.582 0.216 317.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac42cd on white: 4.76:1
AA ✓ pass · AA-large · AAA
Aa
#ac42cd on black: 4.41:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green25.9%
Blue80.4%

CMYK percentages

Cyan16.1%
Magenta67.8%
Yellow0.0%
Key (black)19.6%

Color previews

#ac42cd text on a black background

contrast 4.41:1

Card sample

#ac42cd text on a white background

contrast 4.76:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac42cd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac42cd in the Color Lab