#AB3172#AB3172

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

Color values

HEX#AB3172
RGBrgb(171, 49, 114)
HSLhsl(328, 55%, 43%)
HSVhsv(328, 71%, 67%)
CMYKcmyk(0%, 71.3%, 33.3%, 32.9%)
CIE-LABlab(41.33, 54.83, -9.15)
CIE-LCHlch(41.33, 55.59, 350.52°)
OKLaboklab(51.65% 0.1677 -0.0236)
OKLCHoklch(51.65% 0.169 352)
XYZxyz(20.9313, 12.0719, 17.1441)
Luminance0.1207 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB3172 #31AB6A
analogous
#A731AB #AB3172 #AB3135
triadic
#AB3172 #72AB31 #3172AB
tetradic
#AB3172 #ABA731 #31AB6A #3135AB
square
#AB3172 #ABA731 #31AB6A #3135AB
split-complementary
#AB3172 #35AB31 #31ABA7
monochromatic
#4C1633 #7B2352 #AB3172 #CC4D91 #DA7DAE

Accessibility & contrast

On white

6.15
#AB3172 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AB3172
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB3172#FFFFFF#000000##FFFFFF
##AB31721.006.153.416.15
#FFFFFF6.151.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#455374
Deuteranopia (green-blind)
#686A6F
Tritanopia (blue-blind)
#B8284D
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #ab3172;
/* rgb */ color: rgb(171, 49, 114);
/* oklch */ color: oklch(51.7% 0.169 352.0);
Tailwind
colors: {
  custom: {
    50: '#c8739a',
    500: '#ab3172',
    950: '#000000',
  },
}
SCSS
$custom: #ab3172;
$custom-light: #c8739a;
$custom-dark: #000000;
JSON
{
  "hex": "#ab3172",
  "rgb": {
    "r": 171,
    "g": 49,
    "b": 114
  },
  "hsl": {
    "h": 328.033,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.51655,
    "c": 0.16931,
    "h": 352
  },
  "luminance": 0.12069
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AB3172

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

Preview Lab → · Contrast checker → · Palette generator →

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