#AB2E7E#AB2E7E

#AB2E7E is a mid, vivid pink. Relative luminance 0.121; OKLCH L 51.9% C 0.179 H 345.9°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#AB2E7E
RGBrgb(171, 46, 126)
HSLhsl(322, 58%, 43%)
HSVhsv(322, 73%, 67%)
CMYKcmyk(0%, 73.1%, 26.3%, 32.9%)
CIE-LABlab(41.41, 57.39, -16.47)
CIE-LCHlch(41.41, 59.70, 343.99°)
OKLaboklab(51.86% 0.174 -0.0437)
OKLCHoklch(51.86% 0.179 345.9)
XYZxyz(21.5384, 12.1206, 20.9398)
Luminance0.1212 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2E7E #2EAB5B
analogous
#9A2EAB #AB2E7E #AB2E3F
triadic
#AB2E7E #7EAB2E #2E7EAB
tetradic
#AB2E7E #AB9A2E #2EAB5B #2E3FAB
square
#AB2E7E #AB9A2E #2EAB5B #2E3FAB
split-complementary
#AB2E7E #3FAB2E #2EAB9A
monochromatic
#4B1437 #7B215A #AB2E7E #CE489E #DB79B7

Accessibility & contrast

On white

6.13
#AB2E7E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#AB2E7E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2E7E
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2E7E#FFFFFF#000000##FFFFFF
##AB2E7E1.006.133.426.13
#FFFFFF6.131.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E5480
Deuteranopia (green-blind)
#63697B
Tritanopia (blue-blind)
#B72B52
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #ab2e7e;
/* rgb */ color: rgb(171, 46, 126);
/* oklch */ color: oklch(51.9% 0.179 345.9);
Tailwind
colors: {
  custom: {
    50: '#c872a3',
    500: '#ab2e7e',
    950: '#000000',
  },
}
SCSS
$custom: #ab2e7e;
$custom-light: #c872a3;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2e7e",
  "rgb": {
    "r": 171,
    "g": 46,
    "b": 126
  },
  "hsl": {
    "h": 321.6,
    "s": 57.604,
    "l": 42.549
  },
  "oklch": {
    "l": 0.51863,
    "c": 0.17937,
    "h": 345.9
  },
  "luminance": 0.12118
}

Semantic roles & 50–950 ramp

primary
#AB2E7E
secondary
#72C38F
accent
#E17E47
background
#FCF7FA
surface
#F9EDF3
border
#D2C8CD
text
#14090F
muted
#827B7F

Preview Lab

Preview with #AB2E7E

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

Preview Lab → · Contrast checker → · Palette generator →

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