#AF5173#AF5173

#AF5173 is a mid, vivid pink. Relative luminance 0.162; OKLCH L 56.2% C 0.128 H 359.2°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#AF5173
RGBrgb(175, 81, 115)
HSLhsl(338, 37%, 50%)
HSVhsv(338, 54%, 69%)
CMYKcmyk(0%, 53.7%, 34.3%, 31.4%)
CIE-LABlab(47.29, 42.00, -0.86)
CIE-LCHlch(47.29, 42.01, 358.83°)
OKLaboklab(56.22% 0.1277 -0.0017)
OKLCHoklch(56.22% 0.128 359.2)
XYZxyz(23.7173, 16.2389, 18.1017)
Luminance0.1624 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5173 #51AF8D
analogous
#AF51A2 #AF5173 #AF5E51
triadic
#AF5173 #73AF51 #5173AF
tetradic
#AF5173 #A2AF51 #51AF8D #5E51AF
square
#AF5173 #A2AF51 #51AF8D #5E51AF
split-complementary
#AF5173 #51AF5E #51A2AF
monochromatic
#5C2A3C #853D57 #AF5173 #C27B95 #D6A5B6

Accessibility & contrast

On white

4.94
#AF5173 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#AF5173 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF5173
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5173#FFFFFF#000000##FFFFFF
##AF51731.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#606574
Deuteranopia (green-blind)
#787771
Tritanopia (blue-blind)
#BC4A5E
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #af5173;
/* rgb */ color: rgb(175, 81, 115);
/* oklch */ color: oklch(56.2% 0.128 359.2);
Tailwind
colors: {
  custom: {
    50: '#ca859b',
    500: '#af5173',
    950: '#000000',
  },
}
SCSS
$custom: #af5173;
$custom-light: #ca859b;
$custom-dark: #000000;
JSON
{
  "hex": "#af5173",
  "rgb": {
    "r": 175,
    "g": 81,
    "b": 115
  },
  "hsl": {
    "h": 338.298,
    "s": 37.008,
    "l": 50.196
  },
  "oklch": {
    "l": 0.56215,
    "c": 0.12773,
    "h": 359.2
  },
  "luminance": 0.16237
}

Semantic roles & 50–950 ramp

primary
#AF5173
secondary
#99C3B4
accent
#CDA45B
background
#FCF8F9
surface
#F9EFF2
border
#D2CACC
text
#140B0E
muted
#827C7E

Preview Lab

Preview with #AF5173

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

Preview Lab → · Contrast checker → · Palette generator →

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