#AB317A#AB317A

#AB317A is a mid, vivid pink. Relative luminance 0.123; OKLCH L 52.0% C 0.173 H 348.1°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#AB317A
RGBrgb(171, 49, 122)
HSLhsl(324, 55%, 43%)
HSVhsv(324, 71%, 67%)
CMYKcmyk(0%, 71.3%, 28.7%, 32.9%)
CIE-LABlab(41.63, 55.81, -13.66)
CIE-LCHlch(41.63, 57.45, 346.25°)
OKLaboklab(51.97% 0.1697 -0.0359)
OKLCHoklch(51.97% 0.174 348.1)
XYZxyz(21.4068, 12.2620, 19.6480)
Luminance0.1226 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB317A #31AB62
analogous
#9F31AB #AB317A #AB313D
triadic
#AB317A #7AAB31 #317AAB
tetradic
#AB317A #AB9F31 #31AB62 #313DAB
square
#AB317A #AB9F31 #31AB62 #313DAB
split-complementary
#AB317A #3DAB31 #31AB9F
monochromatic
#4C1636 #7B2358 #AB317A #CC4D99 #DA7DB4

Accessibility & contrast

On white

6.08
#AB317A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#AB317A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB317A
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB317A#FFFFFF#000000##FFFFFF
##AB317A1.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#42557C
Deuteranopia (green-blind)
#666A77
Tritanopia (blue-blind)
#B72C51
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #ab317a;
/* rgb */ color: rgb(171, 49, 122);
/* oklch */ color: oklch(52.0% 0.173 348.1);
Tailwind
colors: {
  custom: {
    50: '#c873a0',
    500: '#ab317a',
    950: '#000000',
  },
}
SCSS
$custom: #ab317a;
$custom-light: #c873a0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab317a",
  "rgb": {
    "r": 171,
    "g": 49,
    "b": 122
  },
  "hsl": {
    "h": 324.098,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.51973,
    "c": 0.1735,
    "h": 348.1
  },
  "luminance": 0.1226
}

Semantic roles & 50–950 ramp

primary
#AB317A
secondary
#75C294
accent
#DF8549
background
#FCF7F9
surface
#F9EDF2
border
#D2C8CC
text
#14090E
muted
#827B7E

Preview Lab

Preview with #AB317A

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

Preview Lab → · Contrast checker → · Palette generator →

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