Skip to content

#ac38ff

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

RGB
172, 56, 255
HSL
275°, 100%, 61%
CMYK
33, 78, 0, 0
Luminance
0.1882

Every format

HEX#ac38ff
RGBrgb(172, 56, 255)
HSLhsl(275, 100%, 61%)
CMYKcmyk(33%, 78%, 0%, 0%)
LABlab(50.5 76.8 -77.4)
LCHlch(50.5 109.0 314.8)
OKLCHoklch(0.608 0.272 305.9)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red67.5%
Green22.0%
Blue100.0%

CMYK percentages

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

Color previews

#ac38ff text on a black background

contrast 4.76:1

Card sample

#ac38ff text on a white background

contrast 4.41:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac38ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac38ff in the Color Lab