#AB317D#AB317D

#AB317D is a mid, vivid pink. Relative luminance 0.123; OKLCH L 52.1% C 0.175 H 346.6°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#AB317D
RGBrgb(171, 49, 125)
HSLhsl(323, 55%, 43%)
HSVhsv(323, 71%, 67%)
CMYKcmyk(0%, 71.3%, 26.9%, 32.9%)
CIE-LABlab(41.75, 56.19, -15.33)
CIE-LCHlch(41.75, 58.24, 344.74°)
OKLaboklab(52.1% 0.1705 -0.0405)
OKLCHoklch(52.1% 0.175 346.6)
XYZxyz(21.5955, 12.3375, 20.6422)
Luminance0.1234 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB317D #31AB5F
analogous
#9C31AB #AB317D #AB3140
triadic
#AB317D #7DAB31 #317DAB
tetradic
#AB317D #AB9C31 #31AB5F #3140AB
square
#AB317D #AB9C31 #31AB5F #3140AB
split-complementary
#AB317D #40AB31 #31AB9C
monochromatic
#4C1637 #7B235A #AB317D #CC4D9C #DA7DB7

Accessibility & contrast

On white

6.06
#AB317D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#AB317D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB317D
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB317D#FFFFFF#000000##FFFFFF
##AB317D1.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#41557F
Deuteranopia (green-blind)
#656A7A
Tritanopia (blue-blind)
#B72E53
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #ab317d;
/* rgb */ color: rgb(171, 49, 125);
/* oklch */ color: oklch(52.1% 0.175 346.6);
Tailwind
colors: {
  custom: {
    50: '#c874a2',
    500: '#ab317d',
    950: '#000000',
  },
}
SCSS
$custom: #ab317d;
$custom-light: #c874a2;
$custom-dark: #000000;
JSON
{
  "hex": "#ab317d",
  "rgb": {
    "r": 171,
    "g": 49,
    "b": 125
  },
  "hsl": {
    "h": 322.623,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.52098,
    "c": 0.1752,
    "h": 346.6
  },
  "luminance": 0.12335
}

Semantic roles & 50–950 ramp

primary
#AB317D
secondary
#75C292
accent
#DF8149
background
#FCF7FA
surface
#F9EDF3
border
#D2C8CD
text
#14090F
muted
#827B7F

Preview Lab

Preview with #AB317D

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

Preview Lab → · Contrast checker → · Palette generator →

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