#AB1F87#AB1F87

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

Color values

HEX#AB1F87
RGBrgb(171, 31, 135)
HSLhsl(315, 69%, 40%)
HSVhsv(315, 82%, 67%)
CMYKcmyk(0%, 81.9%, 21.1%, 32.9%)
CIE-LABlab(40.23, 63.03, -23.82)
CIE-LCHlch(40.23, 67.38, 339.30°)
OKLaboklab(51.14% 0.1893 -0.0642)
OKLCHoklch(51.14% 0.2 341.3)
XYZxyz(21.6585, 11.3895, 23.9747)
Luminance0.1139 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB1F87 #1FAB43
analogous
#891FAB #AB1F87 #AB1F41
triadic
#AB1F87 #87AB1F #1F87AB
tetradic
#AB1F87 #AB891F #1FAB43 #1F41AB
square
#AB1F87 #AB891F #1FAB43 #1F41AB
split-complementary
#AB1F87 #41AB1F #1FAB89
monochromatic
#430C35 #77165E #AB1F87 #D92EAD #E362C1

Accessibility & contrast

On white

6.41
#AB1F87 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#AB1F87 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB1F87
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB1F87#FFFFFF#000000##FFFFFF
##AB1F871.006.413.286.41
#FFFFFF6.411.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E518A
Deuteranopia (green-blind)
#5C6784
Tritanopia (blue-blind)
#B62352
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #ab1f87;
/* rgb */ color: rgb(171, 31, 135);
/* oklch */ color: oklch(51.1% 0.200 341.3);
Tailwind
colors: {
  custom: {
    50: '#c86daa',
    500: '#ab1f87',
    950: '#000000',
  },
}
SCSS
$custom: #ab1f87;
$custom-light: #c86daa;
$custom-dark: #000000;
JSON
{
  "hex": "#ab1f87",
  "rgb": {
    "r": 171,
    "g": 31,
    "b": 135
  },
  "hsl": {
    "h": 315.429,
    "s": 69.307,
    "l": 39.608
  },
  "oklch": {
    "l": 0.51137,
    "c": 0.19991,
    "h": 341.3
  },
  "luminance": 0.11387
}

Semantic roles & 50–950 ramp

primary
#AB1F87
secondary
#5EC779
accent
#EC693C
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140810
muted
#827B7F

Preview Lab

Preview with #AB1F87

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

Preview Lab → · Contrast checker → · Palette generator →

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