#AB2DB5#AB2DB5

#AB2DB5 is a mid, highly saturated purple. Relative luminance 0.139; OKLCH L 54.7% C 0.220 H 324.8°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#AB2DB5
RGBrgb(171, 45, 181)
HSLhsl(296, 60%, 44%)
HSVhsv(296, 75%, 71%)
CMYKcmyk(5.5%, 75.1%, 0%, 29%)
CIE-LABlab(44.05, 66.04, -45.45)
CIE-LCHlch(44.05, 80.17, 325.46°)
OKLaboklab(54.66% 0.1793 -0.1267)
OKLCHoklch(54.66% 0.22 324.8)
XYZxyz(26.0728, 13.8726, 45.0115)
Luminance0.1387 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2DB5 #37B52D
analogous
#672DB5 #AB2DB5 #B52D7B
triadic
#AB2DB5 #B5AB2D #2DB5AB
tetradic
#AB2DB5 #B5672D #37B52D #2D7BB5
square
#AB2DB5 #B5672D #37B52D #2D7BB5
split-complementary
#AB2DB5 #7BB52D #2DB567
monochromatic
#4E1553 #7D2184 #AB2DB5 #C94DD3 #D87EDF

Accessibility & contrast

On white

5.56
#AB2DB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#AB2DB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2DB5
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2DB5#FFFFFF#000000##FFFFFF
##AB2DB51.005.563.775.56
#FFFFFF5.561.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB9
Deuteranopia (green-blind)
#496DB2
Tritanopia (blue-blind)
#AF4670
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #ab2db5;
/* rgb */ color: rgb(171, 45, 181);
/* oklch */ color: oklch(54.7% 0.220 324.8);
Tailwind
colors: {
  custom: {
    50: '#c874cc',
    500: '#ab2db5',
    950: '#000000',
  },
}
SCSS
$custom: #ab2db5;
$custom-light: #c874cc;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2db5",
  "rgb": {
    "r": 171,
    "g": 45,
    "b": 181
  },
  "hsl": {
    "h": 295.588,
    "s": 60.177,
    "l": 44.314
  },
  "oklch": {
    "l": 0.5466,
    "c": 0.21952,
    "h": 324.8
  },
  "luminance": 0.13871
}

Semantic roles & 50–950 ramp

primary
#AB2DB5
secondary
#7CC776
accent
#E34450
background
#FCF7FC
surface
#F9EDF9
border
#D2C8D2
text
#140913
muted
#827B82

Preview Lab

Preview with #AB2DB5

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

Preview Lab → · Contrast checker → · Palette generator →

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