#AB2D8B#AB2D8B

#AB2D8B is a mid, vivid pink. Relative luminance 0.124; OKLCH L 52.4% C 0.189 H 340.1°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#AB2D8B
RGBrgb(171, 45, 139)
HSLhsl(315, 58%, 42%)
HSVhsv(315, 74%, 67%)
CMYKcmyk(0%, 73.7%, 18.7%, 32.9%)
CIE-LABlab(41.85, 59.48, -23.76)
CIE-LCHlch(41.85, 64.05, 338.22°)
OKLaboklab(52.36% 0.1774 -0.0641)
OKLCHoklch(52.36% 0.189 340.1)
XYZxyz(22.3938, 12.4010, 25.6354)
Luminance0.1240 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2D8B #2DAB4D
analogous
#8C2DAB #AB2D8B #AB2D4C
triadic
#AB2D8B #8BAB2D #2D8BAB
tetradic
#AB2D8B #AB8C2D #2DAB4D #2D4CAB
square
#AB2D8B #AB8C2D #2DAB4D #2D4CAB
split-complementary
#AB2D8B #4CAB2D #2DAB8C
monochromatic
#4A143C #7B2064 #AB2D8B #CE47AC #DB77C2

Accessibility & contrast

On white

6.03
#AB2D8B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#AB2D8B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2D8B
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2D8B#FFFFFF#000000##FFFFFF
##AB2D8B1.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#36568E
Deuteranopia (green-blind)
#5F6A88
Tritanopia (blue-blind)
#B53158
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #ab2d8b;
/* rgb */ color: rgb(171, 45, 139);
/* oklch */ color: oklch(52.4% 0.189 340.1);
Tailwind
colors: {
  custom: {
    50: '#c872ad',
    500: '#ab2d8b',
    950: '#000000',
  },
}
SCSS
$custom: #ab2d8b;
$custom-light: #c872ad;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2d8b",
  "rgb": {
    "r": 171,
    "g": 45,
    "b": 139
  },
  "hsl": {
    "h": 315.238,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.52365,
    "c": 0.18863,
    "h": 340.1
  },
  "luminance": 0.12399
}

Semantic roles & 50–950 ramp

primary
#AB2D8B
secondary
#71C386
accent
#E26E46
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AB2D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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