#AB3173#AB3173

#AB3173 is a mid, vivid pink. Relative luminance 0.121; OKLCH L 51.7% C 0.170 H 351.5°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#AB3173
RGBrgb(171, 49, 115)
HSLhsl(328, 55%, 43%)
HSVhsv(328, 71%, 67%)
CMYKcmyk(0%, 71.3%, 32.7%, 32.9%)
CIE-LABlab(41.37, 54.95, -9.72)
CIE-LCHlch(41.37, 55.80, 349.97°)
OKLaboklab(51.69% 0.1679 -0.0252)
OKLCHoklch(51.69% 0.17 351.5)
XYZxyz(20.9886, 12.0948, 17.4456)
Luminance0.1209 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB3173 #31AB69
analogous
#A631AB #AB3173 #AB3136
triadic
#AB3173 #73AB31 #3173AB
tetradic
#AB3173 #ABA631 #31AB69 #3136AB
square
#AB3173 #ABA631 #31AB69 #3136AB
split-complementary
#AB3173 #36AB31 #31ABA6
monochromatic
#4C1633 #7B2353 #AB3173 #CC4D92 #DA7DAF

Accessibility & contrast

On white

6.14
#AB3173 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#AB3173 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB3173
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB3173#FFFFFF#000000##FFFFFF
##AB31731.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#455475
Deuteranopia (green-blind)
#676A70
Tritanopia (blue-blind)
#B8294E
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #ab3173;
/* rgb */ color: rgb(171, 49, 115);
/* oklch */ color: oklch(51.7% 0.170 351.5);
Tailwind
colors: {
  custom: {
    50: '#c8739b',
    500: '#ab3173',
    950: '#000000',
  },
}
SCSS
$custom: #ab3173;
$custom-light: #c8739b;
$custom-dark: #000000;
JSON
{
  "hex": "#ab3173",
  "rgb": {
    "r": 171,
    "g": 49,
    "b": 115
  },
  "hsl": {
    "h": 327.541,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.51694,
    "c": 0.1698,
    "h": 351.5
  },
  "luminance": 0.12092
}

Semantic roles & 50–950 ramp

primary
#AB3173
secondary
#75C299
accent
#DF8E49
background
#FCF7F9
surface
#F9EDF2
border
#D2C8CC
text
#14090E
muted
#827B7E

Preview Lab

Preview with #AB3173

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

Preview Lab → · Contrast checker → · Palette generator →

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