#AB2C7D#AB2C7D

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

Color values

HEX#AB2C7D
RGBrgb(171, 44, 125)
HSLhsl(322, 59%, 42%)
HSVhsv(322, 74%, 67%)
CMYKcmyk(0%, 74.3%, 26.9%, 32.9%)
CIE-LABlab(41.12, 57.94, -16.28)
CIE-LCHlch(41.12, 60.19, 344.31°)
OKLaboklab(51.64% 0.1759 -0.0431)
OKLCHoklch(51.64% 0.181 346.2)
XYZxyz(21.3979, 11.9423, 20.5763)
Luminance0.1194 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2C7D #2CAB5A
analogous
#9A2CAB #AB2C7D #AB2C3E
triadic
#AB2C7D #7DAB2C #2C7DAB
tetradic
#AB2C7D #AB9A2C #2CAB5A #2C3EAB
square
#AB2C7D #AB9A2C #2CAB5A #2C3EAB
split-complementary
#AB2C7D #3EAB2C #2CAB9A
monochromatic
#4A1336 #7A1F59 #AB2C7D #CF459D #DC76B7

Accessibility & contrast

On white

6.20
#AB2C7D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#AB2C7D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2C7D
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2C7D#FFFFFF#000000##FFFFFF
##AB2C7D1.006.203.396.20
#FFFFFF6.201.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D537F
Deuteranopia (green-blind)
#63697A
Tritanopia (blue-blind)
#B72951
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #ab2c7d;
/* rgb */ color: rgb(171, 44, 125);
/* oklch */ color: oklch(51.6% 0.181 346.2);
Tailwind
colors: {
  custom: {
    50: '#c871a2',
    500: '#ab2c7d',
    950: '#000000',
  },
}
SCSS
$custom: #ab2c7d;
$custom-light: #c871a2;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2c7d",
  "rgb": {
    "r": 171,
    "g": 44,
    "b": 125
  },
  "hsl": {
    "h": 321.732,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.51643,
    "c": 0.18109,
    "h": 346.2
  },
  "luminance": 0.1194
}

Semantic roles & 50–950 ramp

primary
#AB2C7D
secondary
#6FC38E
accent
#E27E46
background
#FCF7FA
surface
#F9EDF3
border
#D2C8CD
text
#14090F
muted
#827B7F

Preview Lab

Preview with #AB2C7D

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

Preview Lab → · Contrast checker → · Palette generator →

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