#AB2A8D#AB2A8D

#AB2A8D is a mid, vivid pink. Relative luminance 0.122; OKLCH L 52.2% C 0.193 H 339.2°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#AB2A8D
RGBrgb(171, 42, 141)
HSLhsl(314, 61%, 42%)
HSVhsv(314, 75%, 67%)
CMYKcmyk(0%, 75.4%, 17.5%, 32.9%)
CIE-LABlab(41.59, 60.74, -25.37)
CIE-LCHlch(41.59, 65.82, 337.33°)
OKLaboklab(52.21% 0.1806 -0.0687)
OKLCHoklch(52.21% 0.193 339.2)
XYZxyz(22.4308, 12.2391, 26.3752)
Luminance0.1224 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2A8D #2AAB48
analogous
#882AAB #AB2A8D #AB2A4D
triadic
#AB2A8D #8DAB2A #2A8DAB
tetradic
#AB2A8D #AB882A #2AAB48 #2A4DAB
square
#AB2A8D #AB882A #2AAB48 #2A4DAB
split-complementary
#AB2A8D #4DAB2A #2AAB88
monochromatic
#49123C #7A1E64 #AB2A8D #D142AF #DD73C4

Accessibility & contrast

On white

6.09
#AB2A8D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#AB2A8D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2A8D
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2A8D#FFFFFF#000000##FFFFFF
##AB2A8D1.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#325590
Deuteranopia (green-blind)
#5D698A
Tritanopia (blue-blind)
#B52F59
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #ab2a8d;
/* rgb */ color: rgb(171, 42, 141);
/* oklch */ color: oklch(52.2% 0.193 339.2);
Tailwind
colors: {
  custom: {
    50: '#c871ae',
    500: '#ab2a8d',
    950: '#000000',
  },
}
SCSS
$custom: #ab2a8d;
$custom-light: #c871ae;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2a8d",
  "rgb": {
    "r": 171,
    "g": 42,
    "b": 141
  },
  "hsl": {
    "h": 313.953,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.52212,
    "c": 0.19325,
    "h": 339.2
  },
  "luminance": 0.12237
}

Semantic roles & 50–950 ramp

primary
#AB2A8D
secondary
#6DC481
accent
#E46944
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AB2A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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