#AB3174#AB3174

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

Color values

HEX#AB3174
RGBrgb(171, 49, 116)
HSLhsl(327, 55%, 43%)
HSVhsv(327, 71%, 67%)
CMYKcmyk(0%, 71.3%, 32.2%, 32.9%)
CIE-LABlab(41.40, 55.07, -10.29)
CIE-LCHlch(41.40, 56.02, 349.42°)
OKLaboklab(51.73% 0.1682 -0.0267)
OKLCHoklch(51.73% 0.17 351)
XYZxyz(21.0464, 12.1179, 17.7502)
Luminance0.1212 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB3174 #31AB68
analogous
#A531AB #AB3174 #AB3137
triadic
#AB3174 #74AB31 #3174AB
tetradic
#AB3174 #ABA531 #31AB68 #3137AB
square
#AB3174 #ABA531 #31AB68 #3137AB
split-complementary
#AB3174 #37AB31 #31ABA5
monochromatic
#4C1633 #7B2354 #AB3174 #CC4D93 #DA7DB0

Accessibility & contrast

On white

6.13
#AB3174 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AB3174
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB3174#FFFFFF#000000##FFFFFF
##AB31741.006.133.426.13
#FFFFFF6.131.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ab3174;
/* rgb */ color: rgb(171, 49, 116);
/* oklch */ color: oklch(51.7% 0.170 351.0);
Tailwind
colors: {
  custom: {
    50: '#c8739c',
    500: '#ab3174',
    950: '#000000',
  },
}
SCSS
$custom: #ab3174;
$custom-light: #c8739c;
$custom-dark: #000000;
JSON
{
  "hex": "#ab3174",
  "rgb": {
    "r": 171,
    "g": 49,
    "b": 116
  },
  "hsl": {
    "h": 327.049,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.51733,
    "c": 0.1703,
    "h": 351
  },
  "luminance": 0.12116
}

Semantic roles & 50–950 ramp

primary
#AB3174
secondary
#75C298
accent
#DF8D49
background
#FCF7F9
surface
#F9EDF2
border
#D2C8CC
text
#14090E
muted
#827B7E

Preview Lab

Preview with #AB3174

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

Preview Lab → · Contrast checker → · Palette generator →

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