Skip to content

#af5f9a

a balanced, soft magenta / pink · warm · closest name: plum

RGB
175, 95, 154
HSL
316°, 33%, 53%
CMYK
0, 46, 12, 31
Luminance
0.1963

Every format

HEX#af5f9a
RGBrgb(175, 95, 154)
HSLhsl(316, 33%, 53%)
CMYKcmyk(0%, 46%, 12%, 31%)
LABlab(51.4 40.5 -18.0)
LCHlch(51.4 44.3 336.1)
OKLCHoklch(0.598 0.128 337.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af5f9a on white: 4.26:1
AA ✗ fail · AA-large · AAA
Aa
#af5f9a on black: 4.93:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green37.3%
Blue60.4%

CMYK percentages

Cyan0.0%
Magenta45.7%
Yellow12.0%
Key (black)31.4%

Color previews

#af5f9a text on a black background

contrast 4.93:1

Card sample

#af5f9a text on a white background

contrast 4.26:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af5f9a

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af5f9a in the Color Lab