#AB2B7D#AB2B7D

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

Color values

HEX#AB2B7D
RGBrgb(171, 43, 125)
HSLhsl(322, 60%, 42%)
HSVhsv(322, 75%, 67%)
CMYKcmyk(0%, 74.9%, 26.9%, 32.9%)
CIE-LABlab(41.01, 58.28, -16.46)
CIE-LCHlch(41.01, 60.56, 344.23°)
OKLaboklab(51.56% 0.1769 -0.0436)
OKLCHoklch(51.56% 0.182 346.1)
XYZxyz(21.3611, 11.8687, 20.5640)
Luminance0.1187 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2B7D #2BAB59
analogous
#992BAB #AB2B7D #AB2B3D
triadic
#AB2B7D #7DAB2B #2B7DAB
tetradic
#AB2B7D #AB992B #2BAB59 #2B3DAB
square
#AB2B7D #AB992B #2BAB59 #2B3DAB
split-complementary
#AB2B7D #3DAB2B #2BAB99
monochromatic
#491236 #7A1F59 #AB2B7D #D0439D #DC74B7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AB2B7D#FFFFFF#000000##FFFFFF
##AB2B7D1.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)
#3C537F
Deuteranopia (green-blind)
#63697A
Tritanopia (blue-blind)
#B72850
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #ab2b7d;
/* rgb */ color: rgb(171, 43, 125);
/* oklch */ color: oklch(51.6% 0.182 346.1);
Tailwind
colors: {
  custom: {
    50: '#c871a2',
    500: '#ab2b7d',
    950: '#000000',
  },
}
SCSS
$custom: #ab2b7d;
$custom-light: #c871a2;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2b7d",
  "rgb": {
    "r": 171,
    "g": 43,
    "b": 125
  },
  "hsl": {
    "h": 321.563,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.51558,
    "c": 0.18221,
    "h": 346.1
  },
  "luminance": 0.11866
}

Semantic roles & 50–950 ramp

primary
#AB2B7D
secondary
#6EC48D
accent
#E37E45
background
#FCF7FA
surface
#F9EDF3
border
#D2C8CD
text
#14080F
muted
#827B7F

Preview Lab

Preview with #AB2B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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