#AB1F88#AB1F88

#AB1F88 is a mid, highly saturated pink. Relative luminance 0.114; OKLCH L 51.2% C 0.201 H 340.9°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#AB1F88
RGBrgb(171, 31, 136)
HSLhsl(315, 69%, 40%)
HSVhsv(315, 82%, 67%)
CMYKcmyk(0%, 81.9%, 20.5%, 32.9%)
CIE-LABlab(40.28, 63.16, -24.37)
CIE-LCHlch(40.28, 67.70, 338.91°)
OKLaboklab(51.19% 0.1895 -0.0657)
OKLCHoklch(51.19% 0.201 340.9)
XYZxyz(21.7292, 11.4178, 24.3473)
Luminance0.1142 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB1F88 #1FAB42
analogous
#881FAB #AB1F88 #AB1F42
triadic
#AB1F88 #88AB1F #1F88AB
tetradic
#AB1F88 #AB881F #1FAB42 #1F42AB
square
#AB1F88 #AB881F #1FAB42 #1F42AB
split-complementary
#AB1F88 #42AB1F #1FAB88
monochromatic
#430C36 #77165F #AB1F88 #D92EAE #E362C2

Accessibility & contrast

On white

6.40
#AB1F88 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AB1F88
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB1F88#FFFFFF#000000##FFFFFF
##AB1F881.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D518B
Deuteranopia (green-blind)
#5B6785
Tritanopia (blue-blind)
#B62353
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #ab1f88;
/* rgb */ color: rgb(171, 31, 136);
/* oklch */ color: oklch(51.2% 0.201 340.9);
Tailwind
colors: {
  custom: {
    50: '#c86dab',
    500: '#ab1f88',
    950: '#000000',
  },
}
SCSS
$custom: #ab1f88;
$custom-light: #c86dab;
$custom-dark: #000000;
JSON
{
  "hex": "#ab1f88",
  "rgb": {
    "r": 171,
    "g": 31,
    "b": 136
  },
  "hsl": {
    "h": 315,
    "s": 69.307,
    "l": 39.608
  },
  "oklch": {
    "l": 0.51185,
    "c": 0.20054,
    "h": 340.9
  },
  "luminance": 0.11415
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AB1F88

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

Preview Lab → · Contrast checker → · Palette generator →

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