#AB2A7B#AB2A7B

#AB2A7B is a mid, vivid pink. Relative luminance 0.117; OKLCH L 51.4% C 0.182 H 347.0°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#AB2A7B
RGBrgb(171, 42, 123)
HSLhsl(322, 61%, 42%)
HSVhsv(322, 75%, 67%)
CMYKcmyk(0%, 75.4%, 28.1%, 32.9%)
CIE-LABlab(40.81, 58.35, -15.52)
CIE-LCHlch(40.81, 60.38, 345.10°)
OKLaboklab(51.39% 0.1775 -0.041)
OKLCHoklch(51.39% 0.182 347)
XYZxyz(21.1987, 11.7463, 19.8859)
Luminance0.1174 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2A7B #2AAB5A
analogous
#9B2AAB #AB2A7B #AB2A3A
triadic
#AB2A7B #7BAB2A #2A7BAB
tetradic
#AB2A7B #AB9B2A #2AAB5A #2A3AAB
square
#AB2A7B #AB9B2A #2AAB5A #2A3AAB
split-complementary
#AB2A7B #3AAB2A #2AAB9B
monochromatic
#491234 #7A1E58 #AB2A7B #D1429B #DD73B5

Accessibility & contrast

On white

6.27
#AB2A7B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AB2A7B
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2A7B#FFFFFF#000000##FFFFFF
##AB2A7B1.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C527D
Deuteranopia (green-blind)
#636878
Tritanopia (blue-blind)
#B7254F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #ab2a7b;
/* rgb */ color: rgb(171, 42, 123);
/* oklch */ color: oklch(51.4% 0.182 347.0);
Tailwind
colors: {
  custom: {
    50: '#c870a1',
    500: '#ab2a7b',
    950: '#000000',
  },
}
SCSS
$custom: #ab2a7b;
$custom-light: #c870a1;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2a7b",
  "rgb": {
    "r": 171,
    "g": 42,
    "b": 123
  },
  "hsl": {
    "h": 322.326,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.51388,
    "c": 0.18218,
    "h": 347
  },
  "luminance": 0.11744
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AB2A7B

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

Preview Lab → · Contrast checker → · Palette generator →

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