#AB2A7A#AB2A7A

#AB2A7A is a mid, vivid pink. Relative luminance 0.117; OKLCH L 51.3% C 0.182 H 347.4°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#AB2A7A
RGBrgb(171, 42, 122)
HSLhsl(323, 61%, 42%)
HSVhsv(323, 75%, 67%)
CMYKcmyk(0%, 75.4%, 28.7%, 32.9%)
CIE-LABlab(40.77, 58.23, -14.97)
CIE-LCHlch(40.77, 60.12, 345.58°)
OKLaboklab(51.35% 0.1773 -0.0395)
OKLCHoklch(51.35% 0.182 347.4)
XYZxyz(21.1364, 11.7214, 19.5579)
Luminance0.1172 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2A7A #2AAB5B
analogous
#9C2AAB #AB2A7A #AB2A3A
triadic
#AB2A7A #7AAB2A #2A7AAB
tetradic
#AB2A7A #AB9C2A #2AAB5B #2A3AAB
square
#AB2A7A #AB9C2A #2AAB5B #2A3AAB
split-complementary
#AB2A7A #3AAB2A #2AAB9C
monochromatic
#491234 #7A1E57 #AB2A7A #D1429A #DD73B4

Accessibility & contrast

On white

6.28
#AB2A7A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#AB2A7A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2A7A
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2A7A#FFFFFF#000000##FFFFFF
##AB2A7A1.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D527C
Deuteranopia (green-blind)
#636877
Tritanopia (blue-blind)
#B7254E
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #ab2a7a;
/* rgb */ color: rgb(171, 42, 122);
/* oklch */ color: oklch(51.3% 0.182 347.4);
Tailwind
colors: {
  custom: {
    50: '#c870a0',
    500: '#ab2a7a',
    950: '#000000',
  },
}
SCSS
$custom: #ab2a7a;
$custom-light: #c870a0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2a7a",
  "rgb": {
    "r": 171,
    "g": 42,
    "b": 122
  },
  "hsl": {
    "h": 322.791,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.51345,
    "c": 0.18162,
    "h": 347.4
  },
  "luminance": 0.11719
}

Semantic roles & 50–950 ramp

primary
#AB2A7A
secondary
#6DC48E
accent
#E48144
background
#FCF7F9
surface
#F9EDF2
border
#D2C8CC
text
#14080E
muted
#827B7E

Preview Lab

Preview with #AB2A7A

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

Preview Lab → · Contrast checker → · Palette generator →

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