#AB316B#AB316B

#AB316B is a mid, vivid pink. Relative luminance 0.119; OKLCH L 51.4% C 0.166 H 355.5°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#AB316B
RGBrgb(171, 49, 107)
HSLhsl(331, 55%, 43%)
HSVhsv(331, 71%, 67%)
CMYKcmyk(0%, 71.3%, 37.4%, 32.9%)
CIE-LABlab(41.09, 54.03, -5.16)
CIE-LCHlch(41.09, 54.27, 354.55°)
OKLaboklab(51.4% 0.1656 -0.0129)
OKLCHoklch(51.4% 0.166 355.5)
XYZxyz(20.5480, 11.9185, 15.1255)
Luminance0.1192 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB316B #31AB71
analogous
#AB31A8 #AB316B #AB3431
triadic
#AB316B #6BAB31 #316BAB
tetradic
#AB316B #A8AB31 #31AB71 #3431AB
square
#AB316B #A8AB31 #31AB71 #3431AB
split-complementary
#AB316B #31AB34 #31A8AB
monochromatic
#4C162F #7B234D #AB316B #CC4D89 #DA7DA9

Accessibility & contrast

On white

6.21
#AB316B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#AB316B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB316B
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB316B#FFFFFF#000000##FFFFFF
##AB316B1.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#48526D
Deuteranopia (green-blind)
#696968
Tritanopia (blue-blind)
#B9254A
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #ab316b;
/* rgb */ color: rgb(171, 49, 107);
/* oklch */ color: oklch(51.4% 0.166 355.5);
Tailwind
colors: {
  custom: {
    50: '#c97395',
    500: '#ab316b',
    950: '#000000',
  },
}
SCSS
$custom: #ab316b;
$custom-light: #c97395;
$custom-dark: #000000;
JSON
{
  "hex": "#ab316b",
  "rgb": {
    "r": 171,
    "g": 49,
    "b": 107
  },
  "hsl": {
    "h": 331.475,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.51396,
    "c": 0.16609,
    "h": 355.5
  },
  "luminance": 0.11916
}

Semantic roles & 50–950 ramp

primary
#AB316B
secondary
#75C29E
accent
#DF9849
background
#FCF7F9
surface
#F9EDF1
border
#D2C8CB
text
#14090D
muted
#827B7E

Preview Lab

Preview with #AB316B

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

Preview Lab → · Contrast checker → · Palette generator →

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