#AB2DB9#AB2DB9

#AB2DB9 is a mid, highly saturated purple. Relative luminance 0.140; OKLCH L 54.9% C 0.223 H 323.5°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#AB2DB9
RGBrgb(171, 45, 185)
HSLhsl(294, 61%, 45%)
HSVhsv(294, 76%, 73%)
CMYKcmyk(7.6%, 75.7%, 0%, 27.5%)
CIE-LABlab(44.29, 66.73, -47.42)
CIE-LCHlch(44.29, 81.87, 324.60°)
OKLaboklab(54.91% 0.179 -0.1324)
OKLCHoklch(54.91% 0.223 323.5)
XYZxyz(26.4891, 14.0391, 47.2041)
Luminance0.1404 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2DB9 #3BB92D
analogous
#652DB9 #AB2DB9 #B92D81
triadic
#AB2DB9 #B9AB2D #2DB9AB
tetradic
#AB2DB9 #B9652D #3BB92D #2D81B9
square
#AB2DB9 #B9652D #3BB92D #2D81B9
split-complementary
#AB2DB9 #81B92D #2DB965
monochromatic
#501557 #7D2188 #AB2DB9 #C74FD4 #D780E0

Accessibility & contrast

On white

5.52
#AB2DB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#AB2DB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2DB9
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2DB9#FFFFFF#000000##FFFFFF
##AB2DB91.005.523.815.52
#FFFFFF5.521.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBD
Deuteranopia (green-blind)
#466EB6
Tritanopia (blue-blind)
#AE4872
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #ab2db9;
/* rgb */ color: rgb(171, 45, 185);
/* oklch */ color: oklch(54.9% 0.223 323.5);
Tailwind
colors: {
  custom: {
    50: '#c874cf',
    500: '#ab2db9',
    950: '#000000',
  },
}
SCSS
$custom: #ab2db9;
$custom-light: #c874cf;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2db9",
  "rgb": {
    "r": 171,
    "g": 45,
    "b": 185
  },
  "hsl": {
    "h": 294,
    "s": 60.87,
    "l": 45.098
  },
  "oklch": {
    "l": 0.54907,
    "c": 0.22269,
    "h": 323.5
  },
  "luminance": 0.14037
}

Semantic roles & 50–950 ramp

primary
#AB2DB9
secondary
#81C979
accent
#E44454
background
#FCF7FC
surface
#F9EDF9
border
#D2C8D2
text
#140914
muted
#827B82

Preview Lab

Preview with #AB2DB9

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

Preview Lab → · Contrast checker → · Palette generator →

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