#AB2A7E#AB2A7E

#AB2A7E is a mid, vivid pink. Relative luminance 0.118; OKLCH L 51.5% C 0.184 H 345.6°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#AB2A7E
RGBrgb(171, 42, 126)
HSLhsl(321, 61%, 42%)
HSVhsv(321, 75%, 67%)
CMYKcmyk(0%, 75.4%, 26.3%, 32.9%)
CIE-LABlab(40.93, 58.73, -17.19)
CIE-LCHlch(40.93, 61.19, 343.68°)
OKLaboklab(51.52% 0.1781 -0.0457)
OKLCHoklch(51.52% 0.184 345.6)
XYZxyz(21.3894, 11.8226, 20.8902)
Luminance0.1182 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2A7E #2AAB57
analogous
#982AAB #AB2A7E #AB2A3E
triadic
#AB2A7E #7EAB2A #2A7EAB
tetradic
#AB2A7E #AB982A #2AAB57 #2A3EAB
square
#AB2A7E #AB982A #2AAB57 #2A3EAB
split-complementary
#AB2A7E #3EAB2A #2AAB98
monochromatic
#491236 #7A1E5A #AB2A7E #D1429F #DD73B8

Accessibility & contrast

On white

6.24
#AB2A7E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#AB2A7E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2A7E
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2A7E#FFFFFF#000000##FFFFFF
##AB2A7E1.006.243.366.24
#FFFFFF6.241.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B5380
Deuteranopia (green-blind)
#62687B
Tritanopia (blue-blind)
#B72751
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #ab2a7e;
/* rgb */ color: rgb(171, 42, 126);
/* oklch */ color: oklch(51.5% 0.184 345.6);
Tailwind
colors: {
  custom: {
    50: '#c871a3',
    500: '#ab2a7e',
    950: '#000000',
  },
}
SCSS
$custom: #ab2a7e;
$custom-light: #c871a3;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2a7e",
  "rgb": {
    "r": 171,
    "g": 42,
    "b": 126
  },
  "hsl": {
    "h": 320.93,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.51517,
    "c": 0.18389,
    "h": 345.6
  },
  "luminance": 0.1182
}

Semantic roles & 50–950 ramp

primary
#AB2A7E
secondary
#6DC48B
accent
#E47C44
background
#FCF7FA
surface
#F9EDF3
border
#D2C8CD
text
#14080F
muted
#827B7F

Preview Lab

Preview with #AB2A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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