#AB2D8A#AB2D8A

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

Color values

HEX#AB2D8A
RGBrgb(171, 45, 138)
HSLhsl(316, 58%, 42%)
HSVhsv(316, 74%, 67%)
CMYKcmyk(0%, 73.7%, 19.3%, 32.9%)
CIE-LABlab(41.80, 59.34, -23.22)
CIE-LCHlch(41.80, 63.72, 338.63°)
OKLaboklab(52.32% 0.1772 -0.0626)
OKLCHoklch(52.32% 0.188 340.5)
XYZxyz(22.3211, 12.3719, 25.2523)
Luminance0.1237 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2D8A #2DAB4E
analogous
#8D2DAB #AB2D8A #AB2D4B
triadic
#AB2D8A #8AAB2D #2D8AAB
tetradic
#AB2D8A #AB8D2D #2DAB4E #2D4BAB
square
#AB2D8A #AB8D2D #2DAB4E #2D4BAB
split-complementary
#AB2D8A #4BAB2D #2DAB8D
monochromatic
#4A143C #7B2063 #AB2D8A #CE47AB #DB77C1

Accessibility & contrast

On white

6.04
#AB2D8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AB2D8A
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2D8A#FFFFFF#000000##FFFFFF
##AB2D8A1.006.043.476.04
#FFFFFF6.041.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#37568D
Deuteranopia (green-blind)
#5F6A87
Tritanopia (blue-blind)
#B53058
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #ab2d8a;
/* rgb */ color: rgb(171, 45, 138);
/* oklch */ color: oklch(52.3% 0.188 340.5);
Tailwind
colors: {
  custom: {
    50: '#c872ac',
    500: '#ab2d8a',
    950: '#000000',
  },
}
SCSS
$custom: #ab2d8a;
$custom-light: #c872ac;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2d8a",
  "rgb": {
    "r": 171,
    "g": 45,
    "b": 138
  },
  "hsl": {
    "h": 315.714,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.52317,
    "c": 0.18797,
    "h": 340.5
  },
  "luminance": 0.1237
}

Semantic roles & 50–950 ramp

primary
#AB2D8A
secondary
#71C386
accent
#E26F46
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AB2D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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