#AB2B7E#AB2B7E

#AB2B7E is a mid, vivid pink. Relative luminance 0.119; OKLCH L 51.6% C 0.183 H 345.7°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#AB2B7E
RGBrgb(171, 43, 126)
HSLhsl(321, 60%, 42%)
HSVhsv(321, 75%, 67%)
CMYKcmyk(0%, 74.9%, 26.3%, 32.9%)
CIE-LABlab(41.05, 58.40, -17.02)
CIE-LCHlch(41.05, 60.83, 343.76°)
OKLaboklab(51.6% 0.1771 -0.0452)
OKLCHoklch(51.6% 0.183 345.7)
XYZxyz(21.4253, 11.8944, 20.9021)
Luminance0.1189 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2B7E #2BAB58
analogous
#982BAB #AB2B7E #AB2B3E
triadic
#AB2B7E #7EAB2B #2B7EAB
tetradic
#AB2B7E #AB982B #2BAB58 #2B3EAB
square
#AB2B7E #AB982B #2BAB58 #2B3EAB
split-complementary
#AB2B7E #3EAB2B #2BAB98
monochromatic
#491236 #7A1F5A #AB2B7E #D0439E #DC74B8

Accessibility & contrast

On white

6.22
#AB2B7E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#AB2B7E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2B7E
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2B7E#FFFFFF#000000##FFFFFF
##AB2B7E1.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C5380
Deuteranopia (green-blind)
#62697B
Tritanopia (blue-blind)
#B72851
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #ab2b7e;
/* rgb */ color: rgb(171, 43, 126);
/* oklch */ color: oklch(51.6% 0.183 345.7);
Tailwind
colors: {
  custom: {
    50: '#c871a3',
    500: '#ab2b7e',
    950: '#000000',
  },
}
SCSS
$custom: #ab2b7e;
$custom-light: #c871a3;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2b7e",
  "rgb": {
    "r": 171,
    "g": 43,
    "b": 126
  },
  "hsl": {
    "h": 321.094,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.51601,
    "c": 0.18279,
    "h": 345.7
  },
  "luminance": 0.11892
}

Semantic roles & 50–950 ramp

primary
#AB2B7E
secondary
#6EC48C
accent
#E37C45
background
#FCF7FA
surface
#F9EDF3
border
#D2C8CD
text
#14080F
muted
#827B7F

Preview Lab

Preview with #AB2B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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