#AB2D9E#AB2D9E

#AB2D9E is a mid, highly saturated purple. Relative luminance 0.130; OKLCH L 53.3% C 0.202 H 332.6°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#AB2D9E
RGBrgb(171, 45, 158)
HSLhsl(306, 58%, 42%)
HSVhsv(306, 74%, 67%)
CMYKcmyk(0%, 73.7%, 7.6%, 32.9%)
CIE-LABlab(42.77, 62.29, -33.81)
CIE-LCHlch(42.77, 70.87, 331.50°)
OKLaboklab(53.33% 0.1793 -0.0929)
OKLCHoklch(53.33% 0.202 332.6)
XYZxyz(23.9046, 13.0053, 33.5924)
Luminance0.1300 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2D9E #2DAB3A
analogous
#792DAB #AB2D9E #AB2D5F
triadic
#AB2D9E #9EAB2D #2D9EAB
tetradic
#AB2D9E #AB792D #2DAB3A #2D5FAB
square
#AB2D9E #AB792D #2DAB3A #2D5FAB
split-complementary
#AB2D9E #5FAB2D #2DAB79
monochromatic
#4A1444 #7B2071 #AB2D9E #CE47C0 #DB77D1

Accessibility & contrast

On white

5.83
#AB2D9E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#AB2D9E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2D9E
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2D9E#FFFFFF#000000##FFFFFF
##AB2D9E1.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#265AA1
Deuteranopia (green-blind)
#576B9B
Tritanopia (blue-blind)
#B33A63
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ab2d9e;
/* rgb */ color: rgb(171, 45, 158);
/* oklch */ color: oklch(53.3% 0.202 332.6);
Tailwind
colors: {
  custom: {
    50: '#c873bb',
    500: '#ab2d9e',
    950: '#000000',
  },
}
SCSS
$custom: #ab2d9e;
$custom-light: #c873bb;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2d9e",
  "rgb": {
    "r": 171,
    "g": 45,
    "b": 158
  },
  "hsl": {
    "h": 306.19,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.53333,
    "c": 0.20192,
    "h": 332.6
  },
  "luminance": 0.13003
}

Semantic roles & 50–950 ramp

primary
#AB2D9E
secondary
#71C379
accent
#E25646
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AB2D9E

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

Preview Lab → · Contrast checker → · Palette generator →

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