#AB317B#AB317B

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

Color values

HEX#AB317B
RGBrgb(171, 49, 123)
HSLhsl(324, 55%, 43%)
HSVhsv(324, 71%, 67%)
CMYKcmyk(0%, 71.3%, 28.1%, 32.9%)
CIE-LABlab(41.67, 55.93, -14.22)
CIE-LCHlch(41.67, 57.71, 345.74°)
OKLaboklab(52.01% 0.17 -0.0375)
OKLCHoklch(52.01% 0.174 347.6)
XYZxyz(21.4690, 12.2869, 19.9760)
Luminance0.1229 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB317B #31AB61
analogous
#9E31AB #AB317B #AB313E
triadic
#AB317B #7BAB31 #317BAB
tetradic
#AB317B #AB9E31 #31AB61 #313EAB
square
#AB317B #AB9E31 #31AB61 #313EAB
split-complementary
#AB317B #3EAB31 #31AB9E
monochromatic
#4C1637 #7B2359 #AB317B #CC4D9A #DA7DB5

Accessibility & contrast

On white

6.07
#AB317B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#AB317B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB317B
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB317B#FFFFFF#000000##FFFFFF
##AB317B1.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#42557D
Deuteranopia (green-blind)
#656A78
Tritanopia (blue-blind)
#B72D52
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #ab317b;
/* rgb */ color: rgb(171, 49, 123);
/* oklch */ color: oklch(52.0% 0.174 347.6);
Tailwind
colors: {
  custom: {
    50: '#c873a1',
    500: '#ab317b',
    950: '#000000',
  },
}
SCSS
$custom: #ab317b;
$custom-light: #c873a1;
$custom-dark: #000000;
JSON
{
  "hex": "#ab317b",
  "rgb": {
    "r": 171,
    "g": 49,
    "b": 123
  },
  "hsl": {
    "h": 323.607,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.52014,
    "c": 0.17406,
    "h": 347.6
  },
  "luminance": 0.12285
}

Semantic roles & 50–950 ramp

primary
#AB317B
secondary
#75C294
accent
#DF8449
background
#FCF7F9
surface
#F9EDF2
border
#D2C8CC
text
#14090F
muted
#827B7E

Preview Lab

Preview with #AB317B

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

Preview Lab → · Contrast checker → · Palette generator →

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