#AB2F88#AB2F88

#AB2F88 is a mid, vivid pink. Relative luminance 0.125; OKLCH L 52.4% C 0.184 H 341.5°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#AB2F88
RGBrgb(171, 47, 136)
HSLhsl(317, 57%, 43%)
HSVhsv(317, 73%, 67%)
CMYKcmyk(0%, 72.5%, 20.5%, 32.9%)
CIE-LABlab(41.95, 58.38, -21.76)
CIE-LCHlch(41.95, 62.30, 339.55°)
OKLaboklab(52.4% 0.1748 -0.0585)
OKLCHoklch(52.4% 0.184 341.5)
XYZxyz(22.2557, 12.4707, 24.5228)
Luminance0.1247 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2F88 #2FAB52
analogous
#902FAB #AB2F88 #AB2F4A
triadic
#AB2F88 #88AB2F #2F88AB
tetradic
#AB2F88 #AB902F #2FAB52 #2F4AAB
square
#AB2F88 #AB902F #2FAB52 #2F4AAB
split-complementary
#AB2F88 #4AAB2F #2FAB90
monochromatic
#4B153C #7B2262 #AB2F88 #CD4AA8 #DA7ABF

Accessibility & contrast

On white

6.01
#AB2F88 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#AB2F88 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2F88
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2F88#FFFFFF#000000##FFFFFF
##AB2F881.006.013.496.01
#FFFFFF6.011.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#39568A
Deuteranopia (green-blind)
#606A85
Tritanopia (blue-blind)
#B63157
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #ab2f88;
/* rgb */ color: rgb(171, 47, 136);
/* oklch */ color: oklch(52.4% 0.184 341.5);
Tailwind
colors: {
  custom: {
    50: '#c873ab',
    500: '#ab2f88',
    950: '#000000',
  },
}
SCSS
$custom: #ab2f88;
$custom-light: #c873ab;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2f88",
  "rgb": {
    "r": 171,
    "g": 47,
    "b": 136
  },
  "hsl": {
    "h": 316.935,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.524,
    "c": 0.18435,
    "h": 341.5
  },
  "luminance": 0.12469
}

Semantic roles & 50–950 ramp

primary
#AB2F88
secondary
#73C38A
accent
#E07348
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AB2F88

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

Preview Lab → · Contrast checker → · Palette generator →

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