#AB2A7F#AB2A7F

#AB2A7F is a mid, vivid pink. Relative luminance 0.118; OKLCH L 51.6% C 0.184 H 345.2°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#AB2A7F
RGBrgb(171, 42, 127)
HSLhsl(320, 61%, 42%)
HSVhsv(320, 75%, 67%)
CMYKcmyk(0%, 75.4%, 25.7%, 32.9%)
CIE-LABlab(40.97, 58.86, -17.75)
CIE-LCHlch(40.97, 61.47, 343.22°)
OKLaboklab(51.56% 0.1783 -0.0472)
OKLCHoklch(51.56% 0.184 345.2)
XYZxyz(21.4542, 11.8485, 21.2317)
Luminance0.1185 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2A7F #2AAB56
analogous
#972AAB #AB2A7F #AB2A3F
triadic
#AB2A7F #7FAB2A #2A7FAB
tetradic
#AB2A7F #AB972A #2AAB56 #2A3FAB
square
#AB2A7F #AB972A #2AAB56 #2A3FAB
split-complementary
#AB2A7F #3FAB2A #2AAB97
monochromatic
#491236 #7A1E5B #AB2A7F #D142A0 #DD73B9

Accessibility & contrast

On white

6.23
#AB2A7F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#AB2A7F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2A7F
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2A7F#FFFFFF#000000##FFFFFF
##AB2A7F1.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A5381
Deuteranopia (green-blind)
#62687C
Tritanopia (blue-blind)
#B72851
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #ab2a7f;
/* rgb */ color: rgb(171, 42, 127);
/* oklch */ color: oklch(51.6% 0.184 345.2);
Tailwind
colors: {
  custom: {
    50: '#c871a4',
    500: '#ab2a7f',
    950: '#000000',
  },
}
SCSS
$custom: #ab2a7f;
$custom-light: #c871a4;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2a7f",
  "rgb": {
    "r": 171,
    "g": 42,
    "b": 127
  },
  "hsl": {
    "h": 320.465,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.51561,
    "c": 0.18448,
    "h": 345.2
  },
  "luminance": 0.11846
}

Semantic roles & 50–950 ramp

primary
#AB2A7F
secondary
#6DC48B
accent
#E47B44
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#14080F
muted
#827B7F

Preview Lab

Preview with #AB2A7F

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

Preview Lab → · Contrast checker → · Palette generator →

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