#AB2A84#AB2A84

#AB2A84 is a mid, vivid pink. Relative luminance 0.120; OKLCH L 51.8% C 0.187 H 343.0°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#AB2A84
RGBrgb(171, 42, 132)
HSLhsl(318, 61%, 42%)
HSVhsv(318, 75%, 67%)
CMYKcmyk(0%, 75.4%, 22.8%, 32.9%)
CIE-LABlab(41.19, 59.51, -20.50)
CIE-LCHlch(41.19, 62.94, 341.00°)
OKLaboklab(51.79% 0.1793 -0.0549)
OKLCHoklch(51.79% 0.187 343)
XYZxyz(21.7882, 11.9821, 22.9906)
Luminance0.1198 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2A84 #2AAB51
analogous
#922AAB #AB2A84 #AB2A43
triadic
#AB2A84 #84AB2A #2A84AB
tetradic
#AB2A84 #AB922A #2AAB51 #2A43AB
square
#AB2A84 #AB922A #2AAB51 #2A43AB
split-complementary
#AB2A84 #43AB2A #2AAB92
monochromatic
#491238 #7A1E5E #AB2A84 #D142A5 #DD73BD

Accessibility & contrast

On white

6.18
#AB2A84 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#AB2A84 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2A84
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2A84#FFFFFF#000000##FFFFFF
##AB2A841.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385486
Deuteranopia (green-blind)
#606981
Tritanopia (blue-blind)
#B62B54
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #ab2a84;
/* rgb */ color: rgb(171, 42, 132);
/* oklch */ color: oklch(51.8% 0.187 343.0);
Tailwind
colors: {
  custom: {
    50: '#c871a8',
    500: '#ab2a84',
    950: '#000000',
  },
}
SCSS
$custom: #ab2a84;
$custom-light: #c871a8;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2a84",
  "rgb": {
    "r": 171,
    "g": 42,
    "b": 132
  },
  "hsl": {
    "h": 318.14,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.51786,
    "c": 0.18749,
    "h": 343
  },
  "luminance": 0.1198
}

Semantic roles & 50–950 ramp

primary
#AB2A84
secondary
#6DC487
accent
#E47444
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#14080F
muted
#827B7F

Preview Lab

Preview with #AB2A84

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

Preview Lab → · Contrast checker → · Palette generator →

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