#AF3171#AF3171

#AF3171 is a mid, vivid pink. Relative luminance 0.125; OKLCH L 52.3% C 0.172 H 353.7°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#AF3171
RGBrgb(175, 49, 113)
HSLhsl(330, 56%, 44%)
HSVhsv(330, 72%, 69%)
CMYKcmyk(0%, 72%, 35.4%, 31.4%)
CIE-LABlab(42.01, 55.84, -7.44)
CIE-LCHlch(42.01, 56.33, 352.41°)
OKLaboklab(52.28% 0.171 -0.019)
OKLCHoklch(52.28% 0.172 353.7)
XYZxyz(21.7595, 12.5054, 16.8875)
Luminance0.1250 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3171 #31AF6F
analogous
#AE31AF #AF3171 #AF3132
triadic
#AF3171 #71AF31 #3171AF
tetradic
#AF3171 #AFAE31 #31AF6F #3132AF
square
#AF3171 #AFAE31 #31AF6F #3132AF
split-complementary
#AF3171 #32AF31 #31AFAE
monochromatic
#4F1633 #7F2452 #AF3171 #CE4F90 #DB7FAE

Accessibility & contrast

On white

6.00
#AF3171 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#AF3171 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3171
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3171#FFFFFF#000000##FFFFFF
##AF31711.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#475473
Deuteranopia (green-blind)
#6B6C6E
Tritanopia (blue-blind)
#BD264D
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #af3171;
/* rgb */ color: rgb(175, 49, 113);
/* oklch */ color: oklch(52.3% 0.172 353.7);
Tailwind
colors: {
  custom: {
    50: '#cb7499',
    500: '#af3171',
    950: '#000000',
  },
}
SCSS
$custom: #af3171;
$custom-light: #cb7499;
$custom-dark: #000000;
JSON
{
  "hex": "#af3171",
  "rgb": {
    "r": 175,
    "g": 49,
    "b": 113
  },
  "hsl": {
    "h": 329.524,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.52275,
    "c": 0.17209,
    "h": 353.7
  },
  "luminance": 0.12503
}

Semantic roles & 50–950 ramp

primary
#AF3171
secondary
#78C49D
accent
#E09348
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14090E
muted
#837B7E

Preview Lab

Preview with #AF3171

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#AF3171 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva