#AB2E7A#AB2E7A

#AB2E7A is a mid, vivid pink. Relative luminance 0.120; OKLCH L 51.7% C 0.177 H 347.8°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#AB2E7A
RGBrgb(171, 46, 122)
HSLhsl(324, 58%, 43%)
HSVhsv(324, 73%, 67%)
CMYKcmyk(0%, 73.1%, 28.7%, 32.9%)
CIE-LABlab(41.25, 56.88, -14.24)
CIE-LCHlch(41.25, 58.64, 345.95°)
OKLaboklab(51.69% 0.1731 -0.0375)
OKLCHoklch(51.69% 0.177 347.8)
XYZxyz(21.2854, 12.0194, 19.6076)
Luminance0.1202 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2E7A #2EAB5F
analogous
#9E2EAB #AB2E7A #AB2E3B
triadic
#AB2E7A #7AAB2E #2E7AAB
tetradic
#AB2E7A #AB9E2E #2EAB5F #2E3BAB
square
#AB2E7A #AB9E2E #2EAB5F #2E3BAB
split-complementary
#AB2E7A #3BAB2E #2EAB9E
monochromatic
#4B1435 #7B2158 #AB2E7A #CE489A #DB79B4

Accessibility & contrast

On white

6.17
#AB2E7A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AB2E7A
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2E7A#FFFFFF#000000##FFFFFF
##AB2E7A1.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#40537C
Deuteranopia (green-blind)
#646977
Tritanopia (blue-blind)
#B72950
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #ab2e7a;
/* rgb */ color: rgb(171, 46, 122);
/* oklch */ color: oklch(51.7% 0.177 347.8);
Tailwind
colors: {
  custom: {
    50: '#c872a0',
    500: '#ab2e7a',
    950: '#000000',
  },
}
SCSS
$custom: #ab2e7a;
$custom-light: #c872a0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2e7a",
  "rgb": {
    "r": 171,
    "g": 46,
    "b": 122
  },
  "hsl": {
    "h": 323.52,
    "s": 57.604,
    "l": 42.549
  },
  "oklch": {
    "l": 0.51693,
    "c": 0.1771,
    "h": 347.8
  },
  "luminance": 0.12017
}

Semantic roles & 50–950 ramp

primary
#AB2E7A
secondary
#72C392
accent
#E18347
background
#FCF7F9
surface
#F9EDF2
border
#D2C8CC
text
#14090E
muted
#827B7E

Preview Lab

Preview with #AB2E7A

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

Preview Lab → · Contrast checker → · Palette generator →

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