#AB2E7C#AB2E7C

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

Color values

HEX#AB2E7C
RGBrgb(171, 46, 124)
HSLhsl(323, 58%, 43%)
HSVhsv(323, 73%, 67%)
CMYKcmyk(0%, 73.1%, 27.5%, 32.9%)
CIE-LABlab(41.33, 57.13, -15.35)
CIE-LCHlch(41.33, 59.16, 344.96°)
OKLaboklab(51.78% 0.1735 -0.0406)
OKLCHoklch(51.78% 0.178 346.8)
XYZxyz(21.4106, 12.0695, 20.2670)
Luminance0.1207 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2E7C #2EAB5D
analogous
#9C2EAB #AB2E7C #AB2E3D
triadic
#AB2E7C #7CAB2E #2E7CAB
tetradic
#AB2E7C #AB9C2E #2EAB5D #2E3DAB
square
#AB2E7C #AB9C2E #2EAB5D #2E3DAB
split-complementary
#AB2E7C #3DAB2E #2EAB9C
monochromatic
#4B1436 #7B2159 #AB2E7C #CE489C #DB79B6

Accessibility & contrast

On white

6.15
#AB2E7C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#AB2E7C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2E7C
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2E7C#FFFFFF#000000##FFFFFF
##AB2E7C1.006.153.416.15
#FFFFFF6.151.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F547E
Deuteranopia (green-blind)
#646979
Tritanopia (blue-blind)
#B72A51
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #ab2e7c;
/* rgb */ color: rgb(171, 46, 124);
/* oklch */ color: oklch(51.8% 0.178 346.8);
Tailwind
colors: {
  custom: {
    50: '#c872a2',
    500: '#ab2e7c',
    950: '#000000',
  },
}
SCSS
$custom: #ab2e7c;
$custom-light: #c872a2;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2e7c",
  "rgb": {
    "r": 171,
    "g": 46,
    "b": 124
  },
  "hsl": {
    "h": 322.56,
    "s": 57.604,
    "l": 42.549
  },
  "oklch": {
    "l": 0.51777,
    "c": 0.17822,
    "h": 346.8
  },
  "luminance": 0.12067
}

Semantic roles & 50–950 ramp

primary
#AB2E7C
secondary
#72C390
accent
#E18147
background
#FCF7F9
surface
#F9EDF2
border
#D2C8CC
text
#14090F
muted
#827B7E

Preview Lab

Preview with #AB2E7C

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

Preview Lab → · Contrast checker → · Palette generator →

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