Skip to content

#af2ee2

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

RGB
175, 46, 226
HSL
283°, 76%, 53%
CMYK
23, 80, 0, 11
Luminance
0.1656

Every format

HEX#af2ee2
RGBrgb(175, 46, 226)
HSLhsl(283, 76%, 53%)
CMYKcmyk(23%, 80%, 0%, 11%)
LABlab(47.7 74.6 -65.6)
LCHlch(47.7 99.3 318.7)
OKLCHoklch(0.583 0.257 313.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af2ee2 on white: 4.87:1
AA ✓ pass · AA-large · AAA
Aa
#af2ee2 on black: 4.31:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green18.0%
Blue88.6%

CMYK percentages

Cyan22.6%
Magenta79.6%
Yellow0.0%
Key (black)11.4%

Color previews

#af2ee2 text on a black background

contrast 4.31:1

Card sample

#af2ee2 text on a white background

contrast 4.87:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af2ee2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af2ee2 in the Color Lab