#AF3173#AF3173

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

Color values

HEX#AF3173
RGBrgb(175, 49, 115)
HSLhsl(329, 56%, 44%)
HSVhsv(329, 72%, 69%)
CMYKcmyk(0%, 72%, 34.3%, 31.4%)
CIE-LABlab(42.08, 56.07, -8.58)
CIE-LCHlch(42.08, 56.72, 351.30°)
OKLaboklab(52.35% 0.1716 -0.022)
OKLCHoklch(52.35% 0.173 352.7)
XYZxyz(21.8733, 12.5509, 17.4870)
Luminance0.1255 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3173 #31AF6D
analogous
#AC31AF #AF3173 #AF3134
triadic
#AF3173 #73AF31 #3173AF
tetradic
#AF3173 #AFAC31 #31AF6D #3134AF
square
#AF3173 #AFAC31 #31AF6D #3134AF
split-complementary
#AF3173 #34AF31 #31AFAC
monochromatic
#4F1634 #7F2454 #AF3173 #CE4F92 #DB7FAF

Accessibility & contrast

On white

5.98
#AF3173 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#AF3173 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3173
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3173#FFFFFF#000000##FFFFFF
##AF31731.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#475575
Deuteranopia (green-blind)
#6A6C70
Tritanopia (blue-blind)
#BC274E
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #af3173;
/* rgb */ color: rgb(175, 49, 115);
/* oklch */ color: oklch(52.3% 0.173 352.7);
Tailwind
colors: {
  custom: {
    50: '#cb749b',
    500: '#af3173',
    950: '#000000',
  },
}
SCSS
$custom: #af3173;
$custom-light: #cb749b;
$custom-dark: #000000;
JSON
{
  "hex": "#af3173",
  "rgb": {
    "r": 175,
    "g": 49,
    "b": 115
  },
  "hsl": {
    "h": 328.571,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.5235,
    "c": 0.17302,
    "h": 352.7
  },
  "luminance": 0.12548
}

Semantic roles & 50–950 ramp

primary
#AF3173
secondary
#78C49C
accent
#E09048
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14090E
muted
#837B7E

Preview Lab

Preview with #AF3173

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

Preview Lab → · Contrast checker → · Palette generator →

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