Skip to content

#af28af

a dark, vivid magenta / pink · warm · closest name: purple

RGB
175, 40, 175
HSL
300°, 63%, 42%
CMYK
0, 77, 0, 31
Luminance
0.1373

Every format

HEX#af28af
RGBrgb(175, 40, 175)
HSLhsl(300, 63%, 42%)
CMYKcmyk(0%, 77%, 0%, 31%)
LABlab(43.8 67.4 -42.2)
LCHlch(43.8 79.5 327.9)
OKLCHoklch(0.545 0.222 328.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af28af on white: 5.61:1
AA ✓ pass · AA-large · AAA
Aa
#af28af on black: 3.75:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green15.7%
Blue68.6%

CMYK percentages

Cyan0.0%
Magenta77.1%
Yellow0.0%
Key (black)31.4%

Color previews

#af28af text on a black background

contrast 3.75:1

Card sample

#af28af text on a white background

contrast 5.61:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af28af

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af28af in the Color Lab