Skip to content

#af2fea

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

RGB
175, 47, 234
HSL
281°, 82%, 55%
CMYK
25, 80, 0, 8
Luminance
0.1709

Every format

HEX#af2fea
RGBrgb(175, 47, 234)
HSLhsl(281, 82%, 55%)
CMYKcmyk(25%, 80%, 0%, 8%)
LABlab(48.4 75.9 -69.0)
LCHlch(48.4 102.6 317.7)
OKLCHoklch(0.589 0.262 311.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af2fea on white: 4.75:1
AA ✓ pass · AA-large · AAA
Aa
#af2fea on black: 4.42:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green18.4%
Blue91.8%

CMYK percentages

Cyan25.2%
Magenta79.9%
Yellow0.0%
Key (black)8.2%

Color previews

#af2fea text on a black background

contrast 4.42:1

Card sample

#af2fea text on a white background

contrast 4.75:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af2fea

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af2fea in the Color Lab