#AB2E87#AB2E87

#AB2E87 is a mid, vivid pink. Relative luminance 0.124; OKLCH L 52.3% C 0.185 H 341.9°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#AB2E87
RGBrgb(171, 46, 135)
HSLhsl(317, 58%, 43%)
HSVhsv(317, 73%, 67%)
CMYKcmyk(0%, 73.1%, 21.1%, 32.9%)
CIE-LABlab(41.79, 58.58, -21.41)
CIE-LCHlch(41.79, 62.37, 339.93°)
OKLaboklab(52.26% 0.1757 -0.0575)
OKLCHoklch(52.26% 0.185 341.9)
XYZxyz(22.1455, 12.3634, 24.1371)
Luminance0.1236 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2E87 #2EAB52
analogous
#912EAB #AB2E87 #AB2E48
triadic
#AB2E87 #87AB2E #2E87AB
tetradic
#AB2E87 #AB912E #2EAB52 #2E48AB
square
#AB2E87 #AB912E #2EAB52 #2E48AB
split-complementary
#AB2E87 #48AB2E #2EAB91
monochromatic
#4B143B #7B2161 #AB2E87 #CE48A7 #DB79BF

Accessibility & contrast

On white

6.05
#AB2E87 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#AB2E87 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2E87
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2E87#FFFFFF#000000##FFFFFF
##AB2E871.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#395689
Deuteranopia (green-blind)
#606A84
Tritanopia (blue-blind)
#B63057
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #ab2e87;
/* rgb */ color: rgb(171, 46, 135);
/* oklch */ color: oklch(52.3% 0.185 341.9);
Tailwind
colors: {
  custom: {
    50: '#c872aa',
    500: '#ab2e87',
    950: '#000000',
  },
}
SCSS
$custom: #ab2e87;
$custom-light: #c872aa;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2e87",
  "rgb": {
    "r": 171,
    "g": 46,
    "b": 135
  },
  "hsl": {
    "h": 317.28,
    "s": 57.604,
    "l": 42.549
  },
  "oklch": {
    "l": 0.52264,
    "c": 0.18489,
    "h": 341.9
  },
  "luminance": 0.12361
}

Semantic roles & 50–950 ramp

primary
#AB2E87
secondary
#72C389
accent
#E17347
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AB2E87

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

Preview Lab → · Contrast checker → · Palette generator →

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