#AB317C#AB317C

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

Color values

HEX#AB317C
RGBrgb(171, 49, 124)
HSLhsl(323, 55%, 43%)
HSVhsv(323, 71%, 67%)
CMYKcmyk(0%, 71.3%, 27.5%, 32.9%)
CIE-LABlab(41.71, 56.06, -14.77)
CIE-LCHlch(41.71, 57.98, 345.24°)
OKLaboklab(52.06% 0.1702 -0.039)
OKLCHoklch(52.06% 0.175 347.1)
XYZxyz(21.5320, 12.3121, 20.3074)
Luminance0.1231 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB317C #31AB60
analogous
#9D31AB #AB317C #AB313F
triadic
#AB317C #7CAB31 #317CAB
tetradic
#AB317C #AB9D31 #31AB60 #313FAB
square
#AB317C #AB9D31 #31AB60 #313FAB
split-complementary
#AB317C #3FAB31 #31AB9D
monochromatic
#4C1637 #7B235A #AB317C #CC4D9B #DA7DB6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AB317C#FFFFFF#000000##FFFFFF
##AB317C1.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)
#41557E
Deuteranopia (green-blind)
#656A79
Tritanopia (blue-blind)
#B72D52
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #ab317c;
/* rgb */ color: rgb(171, 49, 124);
/* oklch */ color: oklch(52.1% 0.175 347.1);
Tailwind
colors: {
  custom: {
    50: '#c873a2',
    500: '#ab317c',
    950: '#000000',
  },
}
SCSS
$custom: #ab317c;
$custom-light: #c873a2;
$custom-dark: #000000;
JSON
{
  "hex": "#ab317c",
  "rgb": {
    "r": 171,
    "g": 49,
    "b": 124
  },
  "hsl": {
    "h": 323.115,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.52056,
    "c": 0.17463,
    "h": 347.1
  },
  "luminance": 0.1231
}

Semantic roles & 50–950 ramp

primary
#AB317C
secondary
#75C293
accent
#DF8349
background
#FCF7F9
surface
#F9EDF2
border
#D2C8CC
text
#14090F
muted
#827B7E

Preview Lab

Preview with #AB317C

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

Preview Lab → · Contrast checker → · Palette generator →

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