#AB1F5A#AB1F5A

#AB1F5A is a mid, vivid pink. Relative luminance 0.104; OKLCH L 49.3% C 0.178 H 1.7°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#AB1F5A
RGBrgb(171, 31, 90)
HSLhsl(335, 69%, 40%)
HSVhsv(335, 82%, 67%)
CMYKcmyk(0%, 81.9%, 47.4%, 32.9%)
CIE-LABlab(38.51, 58.05, 1.79)
CIE-LCHlch(38.51, 58.08, 1.77°)
OKLaboklab(49.33% 0.1783 0.0052)
OKLCHoklch(49.33% 0.178 1.7)
XYZxyz(19.1317, 10.3787, 10.6667)
Luminance0.1038 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB1F5A #1FAB70
analogous
#AB1FA0 #AB1F5A #AB2A1F
triadic
#AB1F5A #5AAB1F #1F5AAB
tetradic
#AB1F5A #A0AB1F #1FAB70 #2A1FAB
square
#AB1F5A #A0AB1F #1FAB70 #2A1FAB
split-complementary
#AB1F5A #1FAB2A #1FA0AB
monochromatic
#430C23 #77163F #AB1F5A #D92E76 #E36298

Accessibility & contrast

On white

6.83
#AB1F5A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#AB1F5A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB1F5A
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB1F5A#FFFFFF#000000##FFFFFF
##AB1F5A1.006.833.086.83
#FFFFFF6.831.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#43495B
Deuteranopia (green-blind)
#686457
Tritanopia (blue-blind)
#BA003A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #ab1f5a;
/* rgb */ color: rgb(171, 31, 90);
/* oklch */ color: oklch(49.3% 0.178 1.7);
Tailwind
colors: {
  custom: {
    50: '#ca6b88',
    500: '#ab1f5a',
    950: '#000000',
  },
}
SCSS
$custom: #ab1f5a;
$custom-light: #ca6b88;
$custom-dark: #000000;
JSON
{
  "hex": "#ab1f5a",
  "rgb": {
    "r": 171,
    "g": 31,
    "b": 90
  },
  "hsl": {
    "h": 334.714,
    "s": 69.307,
    "l": 39.608
  },
  "oklch": {
    "l": 0.49332,
    "c": 0.17842,
    "h": 1.7
  },
  "luminance": 0.10376
}

Semantic roles & 50–950 ramp

primary
#AB1F5A
secondary
#5EC79B
accent
#ECA23C
background
#FDF6F8
surface
#FAECEF
border
#D3C7CA
text
#14080B
muted
#837A7C

Preview Lab

Preview with #AB1F5A

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

Preview Lab → · Contrast checker → · Palette generator →

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