Skip to content

#af0f80

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

RGB
175, 15, 128
HSL
318°, 84%, 37%
CMYK
0, 91, 27, 31
Luminance
0.1101

Every format

HEX#af0f80
RGBrgb(175, 15, 128)
HSLhsl(318, 84%, 37%)
CMYKcmyk(0%, 91%, 27%, 31%)
LABlab(39.6 66.1 -20.4)
LCHlch(39.6 69.2 342.9)
OKLCHoklch(0.507 0.208 344.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af0f80 on white: 6.56:1
AA ✓ pass · AA-large · AAA
Aa
#af0f80 on black: 3.20:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green5.9%
Blue50.2%

CMYK percentages

Cyan0.0%
Magenta91.4%
Yellow26.9%
Key (black)31.4%

Color previews

#af0f80 text on a black background

contrast 3.20:1

Card sample

#af0f80 text on a white background

contrast 6.56:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af0f80

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af0f80 in the Color Lab