Skip to content

#af2adf

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

RGB
175, 42, 223
HSL
284°, 74%, 52%
CMYK
22, 81, 0, 13
Luminance
0.1610

Every format

HEX#af2adf
RGBrgb(175, 42, 223)
HSLhsl(284, 74%, 52%)
CMYKcmyk(22%, 81%, 0%, 13%)
LABlab(47.1 75.2 -64.8)
LCHlch(47.1 99.3 319.2)
OKLCHoklch(0.578 0.257 314.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af2adf on white: 4.98:1
AA ✓ pass · AA-large · AAA
Aa
#af2adf on black: 4.22:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green16.5%
Blue87.5%

CMYK percentages

Cyan21.5%
Magenta81.2%
Yellow0.0%
Key (black)12.5%

Color previews

#af2adf text on a black background

contrast 4.22:1

Card sample

#af2adf text on a white background

contrast 4.98:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af2adf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af2adf in the Color Lab