Skip to content

#ac4fff

a light, electric violet · warm · closest name: magenta

RGB
172, 79, 255
HSL
272°, 100%, 66%
CMYK
33, 69, 0, 0
Luminance
0.2158

Every format

HEX#ac4fff
RGBrgb(172, 79, 255)
HSLhsl(272, 100%, 66%)
CMYKcmyk(33%, 69%, 0%, 0%)
LABlab(53.6 68.0 -72.3)
LCHlch(53.6 99.2 313.2)
OKLCHoklch(0.630 0.249 304.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac4fff on white: 3.95:1
AA ✗ fail · AA-large · AAA
Aa
#ac4fff on black: 5.32:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green31.0%
Blue100.0%

CMYK percentages

Cyan32.5%
Magenta69.0%
Yellow0.0%
Key (black)0.0%

Color previews

#ac4fff text on a black background

contrast 5.32:1

Card sample

#ac4fff text on a white background

contrast 3.95:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac4fff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac4fff in the Color Lab