#AB2A7C#AB2A7C

#AB2A7C is a mid, vivid pink. Relative luminance 0.118; OKLCH L 51.4% C 0.183 H 346.5°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#AB2A7C
RGBrgb(171, 42, 124)
HSLhsl(322, 61%, 42%)
HSVhsv(322, 75%, 67%)
CMYKcmyk(0%, 75.4%, 27.5%, 32.9%)
CIE-LABlab(40.85, 58.48, -16.08)
CIE-LCHlch(40.85, 60.65, 344.62°)
OKLaboklab(51.43% 0.1777 -0.0426)
OKLCHoklch(51.43% 0.183 346.5)
XYZxyz(21.2616, 11.7714, 20.2173)
Luminance0.1177 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2A7C #2AAB59
analogous
#992AAB #AB2A7C #AB2A3C
triadic
#AB2A7C #7CAB2A #2A7CAB
tetradic
#AB2A7C #AB992A #2AAB59 #2A3CAB
square
#AB2A7C #AB992A #2AAB59 #2A3CAB
split-complementary
#AB2A7C #3CAB2A #2AAB99
monochromatic
#491235 #7A1E58 #AB2A7C #D1429C #DD73B6

Accessibility & contrast

On white

6.26
#AB2A7C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#AB2A7C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2A7C
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2A7C#FFFFFF#000000##FFFFFF
##AB2A7C1.006.263.356.26
#FFFFFF6.261.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C527E
Deuteranopia (green-blind)
#636879
Tritanopia (blue-blind)
#B7264F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #ab2a7c;
/* rgb */ color: rgb(171, 42, 124);
/* oklch */ color: oklch(51.4% 0.183 346.5);
Tailwind
colors: {
  custom: {
    50: '#c870a2',
    500: '#ab2a7c',
    950: '#000000',
  },
}
SCSS
$custom: #ab2a7c;
$custom-light: #c870a2;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2a7c",
  "rgb": {
    "r": 171,
    "g": 42,
    "b": 124
  },
  "hsl": {
    "h": 321.86,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.51431,
    "c": 0.18274,
    "h": 346.5
  },
  "luminance": 0.11769
}

Semantic roles & 50–950 ramp

primary
#AB2A7C
secondary
#6DC48D
accent
#E47E44
background
#FCF7F9
surface
#F9EDF2
border
#D2C8CC
text
#14080F
muted
#827B7E

Preview Lab

Preview with #AB2A7C

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

Preview Lab → · Contrast checker → · Palette generator →

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