Skip to content

#ac5fc2

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

RGB
172, 95, 194
HSL
287°, 45%, 57%
CMYK
11, 51, 0, 24
Luminance
0.2085

Every format

HEX#ac5fc2
RGBrgb(172, 95, 194)
HSLhsl(287, 45%, 57%)
CMYKcmyk(11%, 51%, 0%, 24%)
LABlab(52.8 47.1 -39.1)
LCHlch(52.8 61.2 320.3)
OKLCHoklch(0.613 0.164 318.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac5fc2 on white: 4.06:1
AA ✗ fail · AA-large · AAA
Aa
#ac5fc2 on black: 5.17:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green37.3%
Blue76.1%

CMYK percentages

Cyan11.3%
Magenta51.0%
Yellow0.0%
Key (black)23.9%

Color previews

#ac5fc2 text on a black background

contrast 5.17:1

Card sample

#ac5fc2 text on a white background

contrast 4.06:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac5fc2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac5fc2 in the Color Lab