#AB2D7E#AB2D7E

#AB2D7E is a mid, vivid pink. Relative luminance 0.120; OKLCH L 51.8% C 0.181 H 345.8°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#AB2D7E
RGBrgb(171, 45, 126)
HSLhsl(321, 58%, 42%)
HSVhsv(321, 74%, 67%)
CMYKcmyk(0%, 73.7%, 26.3%, 32.9%)
CIE-LABlab(41.28, 57.73, -16.65)
CIE-LCHlch(41.28, 60.09, 343.91°)
OKLaboklab(51.77% 0.1751 -0.0442)
OKLCHoklch(51.77% 0.181 345.8)
XYZxyz(21.4998, 12.0434, 20.9270)
Luminance0.1204 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2D7E #2DAB5A
analogous
#992DAB #AB2D7E #AB2D3F
triadic
#AB2D7E #7EAB2D #2D7EAB
tetradic
#AB2D7E #AB992D #2DAB5A #2D3FAB
square
#AB2D7E #AB992D #2DAB5A #2D3FAB
split-complementary
#AB2D7E #3FAB2D #2DAB99
monochromatic
#4A1437 #7B205A #AB2D7E #CE479E #DB77B7

Accessibility & contrast

On white

6.16
#AB2D7E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#AB2D7E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2D7E
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2D7E#FFFFFF#000000##FFFFFF
##AB2D7E1.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D5480
Deuteranopia (green-blind)
#63697B
Tritanopia (blue-blind)
#B72A52
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #ab2d7e;
/* rgb */ color: rgb(171, 45, 126);
/* oklch */ color: oklch(51.8% 0.181 345.8);
Tailwind
colors: {
  custom: {
    50: '#c872a3',
    500: '#ab2d7e',
    950: '#000000',
  },
}
SCSS
$custom: #ab2d7e;
$custom-light: #c872a3;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2d7e",
  "rgb": {
    "r": 171,
    "g": 45,
    "b": 126
  },
  "hsl": {
    "h": 321.429,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.51774,
    "c": 0.18054,
    "h": 345.8
  },
  "luminance": 0.12041
}

Semantic roles & 50–950 ramp

primary
#AB2D7E
secondary
#71C38E
accent
#E27E46
background
#FCF7FA
surface
#F9EDF3
border
#D2C8CD
text
#14090F
muted
#827B7F

Preview Lab

Preview with #AB2D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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