#AB2DA8#AB2DA8

#AB2DA8 is a mid, highly saturated purple. Relative luminance 0.134; OKLCH L 53.9% C 0.209 H 329.0°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#AB2DA8
RGBrgb(171, 45, 168)
HSLhsl(301, 58%, 42%)
HSVhsv(301, 74%, 67%)
CMYKcmyk(0%, 73.7%, 1.8%, 32.9%)
CIE-LABlab(43.31, 63.87, -38.94)
CIE-LCHlch(43.31, 74.81, 328.63°)
OKLaboklab(53.89% 0.1796 -0.1077)
OKLCHoklch(53.89% 0.209 329)
XYZxyz(24.8006, 13.3637, 38.3114)
Luminance0.1336 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2DA8 #2DAB30
analogous
#6F2DAB #AB2DA8 #AB2D69
triadic
#AB2DA8 #A8AB2D #2DA8AB
tetradic
#AB2DA8 #AB6F2D #2DAB30 #2D69AB
square
#AB2DA8 #AB6F2D #2DAB30 #2D69AB
split-complementary
#AB2DA8 #69AB2D #2DAB6F
monochromatic
#4A1449 #7B2078 #AB2DA8 #CE47CB #DB77D9

Accessibility & contrast

On white

5.72
#AB2DA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#AB2DA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2DA8
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2DA8#FFFFFF#000000##FFFFFF
##AB2DA81.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#185CAB
Deuteranopia (green-blind)
#516CA5
Tritanopia (blue-blind)
#B13F68
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #ab2da8;
/* rgb */ color: rgb(171, 45, 168);
/* oklch */ color: oklch(53.9% 0.209 329.0);
Tailwind
colors: {
  custom: {
    50: '#c873c2',
    500: '#ab2da8',
    950: '#000000',
  },
}
SCSS
$custom: #ab2da8;
$custom-light: #c873c2;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2da8",
  "rgb": {
    "r": 171,
    "g": 45,
    "b": 168
  },
  "hsl": {
    "h": 301.429,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.5389,
    "c": 0.20942,
    "h": 329
  },
  "luminance": 0.13362
}

Semantic roles & 50–950 ramp

primary
#AB2DA8
secondary
#71C373
accent
#E24A46
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140912
muted
#827B81

Preview Lab

Preview with #AB2DA8

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

Preview Lab → · Contrast checker → · Palette generator →

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