#AB2D99#AB2D99

#AB2D99 is a mid, vivid purple. Relative luminance 0.128; OKLCH L 53.1% C 0.198 H 334.5°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#AB2D99
RGBrgb(171, 45, 153)
HSLhsl(309, 58%, 42%)
HSVhsv(309, 74%, 67%)
CMYKcmyk(0%, 73.7%, 10.5%, 32.9%)
CIE-LABlab(42.52, 61.52, -31.21)
CIE-LCHlch(42.52, 68.98, 333.10°)
OKLaboklab(53.07% 0.179 -0.0854)
OKLCHoklch(53.07% 0.198 334.5)
XYZxyz(23.4830, 12.8367, 31.3718)
Luminance0.1283 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2D99 #2DAB3F
analogous
#7E2DAB #AB2D99 #AB2D5A
triadic
#AB2D99 #99AB2D #2D99AB
tetradic
#AB2D99 #AB7E2D #2DAB3F #2D5AAB
square
#AB2D99 #AB7E2D #2DAB3F #2D5AAB
split-complementary
#AB2D99 #5AAB2D #2DAB7E
monochromatic
#4A1442 #7B206E #AB2D99 #CE47BB #DB77CD

Accessibility & contrast

On white

5.89
#AB2D99 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#AB2D99 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2D99
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2D99#FFFFFF#000000##FFFFFF
##AB2D991.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B599C
Deuteranopia (green-blind)
#596B96
Tritanopia (blue-blind)
#B33860
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ab2d99;
/* rgb */ color: rgb(171, 45, 153);
/* oklch */ color: oklch(53.1% 0.198 334.5);
Tailwind
colors: {
  custom: {
    50: '#c873b7',
    500: '#ab2d99',
    950: '#000000',
  },
}
SCSS
$custom: #ab2d99;
$custom-light: #c873b7;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2d99",
  "rgb": {
    "r": 171,
    "g": 45,
    "b": 153
  },
  "hsl": {
    "h": 308.571,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.53067,
    "c": 0.19829,
    "h": 334.5
  },
  "luminance": 0.12835
}

Semantic roles & 50–950 ramp

primary
#AB2D99
secondary
#71C37C
accent
#E25C46
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AB2D99

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

Preview Lab → · Contrast checker → · Palette generator →

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