#AB1F8B#AB1F8B

#AB1F8B is a mid, highly saturated pink. Relative luminance 0.115; OKLCH L 51.3% C 0.202 H 339.7°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#AB1F8B
RGBrgb(171, 31, 139)
HSLhsl(314, 69%, 40%)
HSVhsv(314, 82%, 67%)
CMYKcmyk(0%, 81.9%, 18.7%, 32.9%)
CIE-LABlab(40.42, 63.56, -25.99)
CIE-LCHlch(40.42, 68.67, 337.76°)
OKLaboklab(51.33% 0.1898 -0.0703)
OKLCHoklch(51.33% 0.202 339.7)
XYZxyz(21.9454, 11.5042, 25.4859)
Luminance0.1150 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB1F8B #1FAB3F
analogous
#851FAB #AB1F8B #AB1F45
triadic
#AB1F8B #8BAB1F #1F8BAB
tetradic
#AB1F8B #AB851F #1FAB3F #1F45AB
square
#AB1F8B #AB851F #1FAB3F #1F45AB
split-complementary
#AB1F8B #45AB1F #1FAB85
monochromatic
#430C37 #771661 #AB1F8B #D92EB2 #E362C5

Accessibility & contrast

On white

6.36
#AB1F8B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#AB1F8B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB1F8B
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB1F8B#FFFFFF#000000##FFFFFF
##AB1F8B1.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A518E
Deuteranopia (green-blind)
#5A6788
Tritanopia (blue-blind)
#B52555
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #ab1f8b;
/* rgb */ color: rgb(171, 31, 139);
/* oklch */ color: oklch(51.3% 0.202 339.7);
Tailwind
colors: {
  custom: {
    50: '#c86dad',
    500: '#ab1f8b',
    950: '#000000',
  },
}
SCSS
$custom: #ab1f8b;
$custom-light: #c86dad;
$custom-dark: #000000;
JSON
{
  "hex": "#ab1f8b",
  "rgb": {
    "r": 171,
    "g": 31,
    "b": 139
  },
  "hsl": {
    "h": 313.714,
    "s": 69.307,
    "l": 39.608
  },
  "oklch": {
    "l": 0.51333,
    "c": 0.20242,
    "h": 339.7
  },
  "luminance": 0.11502
}

Semantic roles & 50–950 ramp

primary
#AB1F8B
secondary
#5EC776
accent
#EC643C
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140810
muted
#827B7F

Preview Lab

Preview with #AB1F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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