Skip to content

#af23ce

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

RGB
175, 35, 206
HSL
289°, 71%, 47%
CMYK
15, 83, 0, 19
Luminance
0.1477

Every format

HEX#af23ce
RGBrgb(175, 35, 206)
HSLhsl(289, 71%, 47%)
CMYKcmyk(15%, 83%, 0%, 19%)
LABlab(45.3 73.9 -58.0)
LCHlch(45.3 93.9 321.9)
OKLCHoklch(0.562 0.249 319.1)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red68.6%
Green13.7%
Blue80.8%

CMYK percentages

Cyan15.0%
Magenta83.0%
Yellow0.0%
Key (black)19.2%

Color previews

#af23ce text on a black background

contrast 3.95:1

Card sample

#af23ce text on a white background

contrast 5.31:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 35, 206, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 35, 206, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af23ce;
background: linear-gradient(135deg, #af23ce, #CE237B);

Monochromatic scale

Palettes built from #af23ce

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af23ce in the Color Lab