#AB2E7F#AB2E7F

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

Color values

HEX#AB2E7F
RGBrgb(171, 46, 127)
HSLhsl(321, 58%, 43%)
HSVhsv(321, 73%, 67%)
CMYKcmyk(0%, 73.1%, 25.7%, 32.9%)
CIE-LABlab(41.45, 57.52, -17.02)
CIE-LCHlch(41.45, 59.98, 343.52°)
OKLaboklab(51.91% 0.1742 -0.0452)
OKLCHoklch(51.91% 0.18 345.5)
XYZxyz(21.6033, 12.1465, 21.2814)
Luminance0.1214 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2E7F #2EAB5A
analogous
#992EAB #AB2E7F #AB2E40
triadic
#AB2E7F #7FAB2E #2E7FAB
tetradic
#AB2E7F #AB992E #2EAB5A #2E40AB
square
#AB2E7F #AB992E #2EAB5A #2E40AB
split-complementary
#AB2E7F #40AB2E #2EAB99
monochromatic
#4B1437 #7B215B #AB2E7F #CE489F #DB79B8

Accessibility & contrast

On white

6.12
#AB2E7F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#AB2E7F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2E7F
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2E7F#FFFFFF#000000##FFFFFF
##AB2E7F1.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D5481
Deuteranopia (green-blind)
#63697C
Tritanopia (blue-blind)
#B72C52
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #ab2e7f;
/* rgb */ color: rgb(171, 46, 127);
/* oklch */ color: oklch(51.9% 0.180 345.5);
Tailwind
colors: {
  custom: {
    50: '#c872a4',
    500: '#ab2e7f',
    950: '#000000',
  },
}
SCSS
$custom: #ab2e7f;
$custom-light: #c872a4;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2e7f",
  "rgb": {
    "r": 171,
    "g": 46,
    "b": 127
  },
  "hsl": {
    "h": 321.12,
    "s": 57.604,
    "l": 42.549
  },
  "oklch": {
    "l": 0.51906,
    "c": 0.17996,
    "h": 345.5
  },
  "luminance": 0.12144
}

Semantic roles & 50–950 ramp

primary
#AB2E7F
secondary
#72C38E
accent
#E17D47
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#14090F
muted
#827B7F

Preview Lab

Preview with #AB2E7F

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

Preview Lab → · Contrast checker → · Palette generator →

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