#AB2E7D#AB2E7D

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

Color values

HEX#AB2E7D
RGBrgb(171, 46, 125)
HSLhsl(322, 58%, 43%)
HSVhsv(322, 73%, 67%)
CMYKcmyk(0%, 73.1%, 26.9%, 32.9%)
CIE-LABlab(41.37, 57.26, -15.91)
CIE-LCHlch(41.37, 59.43, 344.47°)
OKLaboklab(51.82% 0.1738 -0.0421)
OKLCHoklch(51.82% 0.179 346.4)
XYZxyz(21.4742, 12.0949, 20.6017)
Luminance0.1209 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2E7D #2EAB5C
analogous
#9B2EAB #AB2E7D #AB2E3E
triadic
#AB2E7D #7DAB2E #2E7DAB
tetradic
#AB2E7D #AB9B2E #2EAB5C #2E3EAB
square
#AB2E7D #AB9B2E #2EAB5C #2E3EAB
split-complementary
#AB2E7D #3EAB2E #2EAB9B
monochromatic
#4B1436 #7B215A #AB2E7D #CE489D #DB79B7

Accessibility & contrast

On white

6.14
#AB2E7D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AB2E7D
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2E7D#FFFFFF#000000##FFFFFF
##AB2E7D1.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E547F
Deuteranopia (green-blind)
#64697A
Tritanopia (blue-blind)
#B72B51
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #ab2e7d;
/* rgb */ color: rgb(171, 46, 125);
/* oklch */ color: oklch(51.8% 0.179 346.4);
Tailwind
colors: {
  custom: {
    50: '#c872a2',
    500: '#ab2e7d',
    950: '#000000',
  },
}
SCSS
$custom: #ab2e7d;
$custom-light: #c872a2;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2e7d",
  "rgb": {
    "r": 171,
    "g": 46,
    "b": 125
  },
  "hsl": {
    "h": 322.08,
    "s": 57.604,
    "l": 42.549
  },
  "oklch": {
    "l": 0.5182,
    "c": 0.17879,
    "h": 346.4
  },
  "luminance": 0.12093
}

Semantic roles & 50–950 ramp

primary
#AB2E7D
secondary
#72C390
accent
#E18047
background
#FCF7FA
surface
#F9EDF3
border
#D2C8CD
text
#14090F
muted
#827B7F

Preview Lab

Preview with #AB2E7D

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

Preview Lab → · Contrast checker → · Palette generator →

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