Skip to content

#af2fec

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

RGB
175, 47, 236
HSL
281°, 83%, 56%
CMYK
26, 80, 0, 8
Luminance
0.1720

Every format

HEX#af2fec
RGBrgb(175, 47, 236)
HSLhsl(281, 83%, 56%)
CMYKcmyk(26%, 80%, 0%, 8%)
LABlab(48.5 76.3 -69.9)
LCHlch(48.5 103.5 317.5)
OKLCHoklch(0.591 0.264 311.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af2fec on white: 4.73:1
AA ✓ pass · AA-large · AAA
Aa
#af2fec on black: 4.44:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green18.4%
Blue92.5%

CMYK percentages

Cyan25.8%
Magenta80.1%
Yellow0.0%
Key (black)7.5%

Color previews

#af2fec text on a black background

contrast 4.44:1

Card sample

#af2fec text on a white background

contrast 4.73:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af2fec

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af2fec in the Color Lab