Skip to content

#af2f6e

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

RGB
175, 47, 110
HSL
331°, 58%, 44%
CMYK
0, 73, 37, 31
Luminance
0.1227

Every format

HEX#af2f6e
RGBrgb(175, 47, 110)
HSLhsl(331, 58%, 44%)
CMYKcmyk(0%, 73%, 37%, 31%)
LABlab(41.6 56.2 -6.1)
LCHlch(41.6 56.5 353.8)
OKLCHoklch(0.520 0.173 354.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af2f6e on white: 6.08:1
AA ✓ pass · AA-large · AAA
Aa
#af2f6e on black: 3.45:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green18.4%
Blue43.1%

CMYK percentages

Cyan0.0%
Magenta73.1%
Yellow37.1%
Key (black)31.4%

Color previews

#af2f6e text on a black background

contrast 3.45:1

Card sample

#af2f6e text on a white background

contrast 6.08:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af2f6e

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af2f6e in the Color Lab