Skip to content

#af2a5f

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

RGB
175, 42, 95
HSL
336°, 61%, 43%
CMYK
0, 76, 46, 31
Luminance
0.1160

Every format

HEX#af2a5f
RGBrgb(175, 42, 95)
HSLhsl(336, 61%, 43%)
CMYKcmyk(0%, 76%, 46%, 31%)
LABlab(40.6 56.4 1.7)
LCHlch(40.6 56.4 1.7)
OKLCHoklch(0.510 0.173 1.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af2a5f on white: 6.33:1
AA ✓ pass · AA-large · AAA
Aa
#af2a5f on black: 3.32:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green16.5%
Blue37.3%

CMYK percentages

Cyan0.0%
Magenta76.0%
Yellow45.7%
Key (black)31.4%

Color previews

#af2a5f text on a black background

contrast 3.32:1

Card sample

#af2a5f text on a white background

contrast 6.33:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af2a5f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af2a5f in the Color Lab