Skip to content

#af2dec

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

RGB
175, 45, 236
HSL
281°, 83%, 55%
CMYK
26, 81, 0, 8
Luminance
0.1705

Every format

HEX#af2dec
RGBrgb(175, 45, 236)
HSLhsl(281, 83%, 55%)
CMYKcmyk(26%, 81%, 0%, 8%)
LABlab(48.3 76.8 -70.2)
LCHlch(48.3 104.1 317.6)
OKLCHoklch(0.590 0.266 311.4)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red68.6%
Green17.6%
Blue92.5%

CMYK percentages

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

Color previews

#af2dec text on a black background

contrast 4.41:1

Card sample

#af2dec text on a white background

contrast 4.76:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af2dec

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af2dec in the Color Lab