#AB317F#AB317F

#AB317F is a mid, vivid pink. Relative luminance 0.124; OKLCH L 52.2% C 0.176 H 345.7°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#AB317F
RGBrgb(171, 49, 127)
HSLhsl(322, 55%, 43%)
HSVhsv(322, 71%, 67%)
CMYKcmyk(0%, 71.3%, 25.7%, 32.9%)
CIE-LABlab(41.83, 56.45, -16.44)
CIE-LCHlch(41.83, 58.79, 343.77°)
OKLaboklab(52.18% 0.1709 -0.0436)
OKLCHoklch(52.18% 0.176 345.7)
XYZxyz(21.7246, 12.3891, 21.3218)
Luminance0.1239 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB317F #31AB5D
analogous
#9A31AB #AB317F #AB3142
triadic
#AB317F #7FAB31 #317FAB
tetradic
#AB317F #AB9A31 #31AB5D #3142AB
square
#AB317F #AB9A31 #31AB5D #3142AB
split-complementary
#AB317F #42AB31 #31AB9A
monochromatic
#4C1638 #7B235C #AB317F #CC4D9E #DA7DB8

Accessibility & contrast

On white

6.04
#AB317F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#AB317F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB317F
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB317F#FFFFFF#000000##FFFFFF
##AB317F1.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#405581
Deuteranopia (green-blind)
#646A7C
Tritanopia (blue-blind)
#B72F54
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #ab317f;
/* rgb */ color: rgb(171, 49, 127);
/* oklch */ color: oklch(52.2% 0.176 345.7);
Tailwind
colors: {
  custom: {
    50: '#c874a4',
    500: '#ab317f',
    950: '#000000',
  },
}
SCSS
$custom: #ab317f;
$custom-light: #c874a4;
$custom-dark: #000000;
JSON
{
  "hex": "#ab317f",
  "rgb": {
    "r": 171,
    "g": 49,
    "b": 127
  },
  "hsl": {
    "h": 321.639,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.52183,
    "c": 0.17638,
    "h": 345.7
  },
  "luminance": 0.12387
}

Semantic roles & 50–950 ramp

primary
#AB317F
secondary
#75C291
accent
#DF7F49
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#14090F
muted
#827B7F

Preview Lab

Preview with #AB317F

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

Preview Lab → · Contrast checker → · Palette generator →

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