#AB3171#AB3171

#AB3171 is a mid, vivid pink. Relative luminance 0.120; OKLCH L 51.6% C 0.169 H 352.5°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#AB3171
RGBrgb(171, 49, 113)
HSLhsl(329, 55%, 43%)
HSVhsv(329, 71%, 67%)
CMYKcmyk(0%, 71.3%, 33.9%, 32.9%)
CIE-LABlab(41.29, 54.71, -8.59)
CIE-LCHlch(41.29, 55.38, 351.08°)
OKLaboklab(51.62% 0.1674 -0.0221)
OKLCHoklch(51.62% 0.169 352.5)
XYZxyz(20.8747, 12.0492, 16.8460)
Luminance0.1205 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB3171 #31AB6B
analogous
#A831AB #AB3171 #AB3134
triadic
#AB3171 #71AB31 #3171AB
tetradic
#AB3171 #ABA831 #31AB6B #3134AB
square
#AB3171 #ABA831 #31AB6B #3134AB
split-complementary
#AB3171 #34AB31 #31ABA8
monochromatic
#4C1632 #7B2352 #AB3171 #CC4D90 #DA7DAD

Accessibility & contrast

On white

6.16
#AB3171 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#AB3171 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB3171
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB3171#FFFFFF#000000##FFFFFF
##AB31711.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#465373
Deuteranopia (green-blind)
#68696E
Tritanopia (blue-blind)
#B8284D
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #ab3171;
/* rgb */ color: rgb(171, 49, 113);
/* oklch */ color: oklch(51.6% 0.169 352.5);
Tailwind
colors: {
  custom: {
    50: '#c87399',
    500: '#ab3171',
    950: '#000000',
  },
}
SCSS
$custom: #ab3171;
$custom-light: #c87399;
$custom-dark: #000000;
JSON
{
  "hex": "#ab3171",
  "rgb": {
    "r": 171,
    "g": 49,
    "b": 113
  },
  "hsl": {
    "h": 328.525,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.51617,
    "c": 0.16882,
    "h": 352.5
  },
  "luminance": 0.12047
}

Semantic roles & 50–950 ramp

primary
#AB3171
secondary
#75C29A
accent
#DF9049
background
#FCF7F9
surface
#F9EDF2
border
#D2C8CC
text
#14090E
muted
#827B7E

Preview Lab

Preview with #AB3171

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

Preview Lab → · Contrast checker → · Palette generator →

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