Skip to content

#af2edf

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

RGB
175, 46, 223
HSL
284°, 73%, 53%
CMYK
22, 79, 0, 13
Luminance
0.1640

Every format

HEX#af2edf
RGBrgb(175, 46, 223)
HSLhsl(284, 73%, 53%)
CMYKcmyk(22%, 79%, 0%, 13%)
LABlab(47.5 74.1 -64.2)
LCHlch(47.5 98.0 319.1)
OKLCHoklch(0.581 0.254 314.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af2edf on white: 4.91:1
AA ✓ pass · AA-large · AAA
Aa
#af2edf on black: 4.28:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green18.0%
Blue87.5%

CMYK percentages

Cyan21.5%
Magenta79.4%
Yellow0.0%
Key (black)12.5%

Color previews

#af2edf text on a black background

contrast 4.28:1

Card sample

#af2edf text on a white background

contrast 4.91:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af2edf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af2edf in the Color Lab