#AB1F86#AB1F86

#AB1F86 is a mid, vivid pink. Relative luminance 0.114; OKLCH L 51.1% C 0.199 H 341.7°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#AB1F86
RGBrgb(171, 31, 134)
HSLhsl(316, 69%, 40%)
HSVhsv(316, 82%, 67%)
CMYKcmyk(0%, 81.9%, 21.6%, 32.9%)
CIE-LABlab(40.18, 62.90, -23.28)
CIE-LCHlch(40.18, 67.07, 339.69°)
OKLaboklab(51.09% 0.1892 -0.0627)
OKLCHoklch(51.09% 0.199 341.7)
XYZxyz(21.5884, 11.3614, 23.6057)
Luminance0.1136 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB1F86 #1FAB44
analogous
#8A1FAB #AB1F86 #AB1F40
triadic
#AB1F86 #86AB1F #1F86AB
tetradic
#AB1F86 #AB8A1F #1FAB44 #1F40AB
square
#AB1F86 #AB8A1F #1FAB44 #1F40AB
split-complementary
#AB1F86 #40AB1F #1FAB8A
monochromatic
#430C35 #77165D #AB1F86 #D92EAC #E362C1

Accessibility & contrast

On white

6.42
#AB1F86 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#AB1F86 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB1F86
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB1F86#FFFFFF#000000##FFFFFF
##AB1F861.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E5089
Deuteranopia (green-blind)
#5C6783
Tritanopia (blue-blind)
#B62252
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #ab1f86;
/* rgb */ color: rgb(171, 31, 134);
/* oklch */ color: oklch(51.1% 0.199 341.7);
Tailwind
colors: {
  custom: {
    50: '#c86da9',
    500: '#ab1f86',
    950: '#000000',
  },
}
SCSS
$custom: #ab1f86;
$custom-light: #c86da9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab1f86",
  "rgb": {
    "r": 171,
    "g": 31,
    "b": 134
  },
  "hsl": {
    "h": 315.857,
    "s": 69.307,
    "l": 39.608
  },
  "oklch": {
    "l": 0.51089,
    "c": 0.1993,
    "h": 341.7
  },
  "luminance": 0.11359
}

Semantic roles & 50–950 ramp

primary
#AB1F86
secondary
#5EC77A
accent
#EC6A3C
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140810
muted
#827B7F

Preview Lab

Preview with #AB1F86

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

Preview Lab → · Contrast checker → · Palette generator →

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