#AB2DA7#AB2DA7

#AB2DA7 is a mid, highly saturated purple. Relative luminance 0.133; OKLCH L 53.8% C 0.209 H 329.4°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#AB2DA7
RGBrgb(171, 45, 167)
HSLhsl(302, 58%, 42%)
HSVhsv(302, 74%, 67%)
CMYKcmyk(0%, 73.7%, 2.3%, 32.9%)
CIE-LABlab(43.25, 63.71, -38.43)
CIE-LCHlch(43.25, 74.41, 328.90°)
OKLaboklab(53.83% 0.1796 -0.1062)
OKLCHoklch(53.83% 0.209 329.4)
XYZxyz(24.7078, 13.3266, 37.8227)
Luminance0.1333 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2DA7 #2DAB31
analogous
#702DAB #AB2DA7 #AB2D68
triadic
#AB2DA7 #A7AB2D #2DA7AB
tetradic
#AB2DA7 #AB702D #2DAB31 #2D68AB
square
#AB2DA7 #AB702D #2DAB31 #2D68AB
split-complementary
#AB2DA7 #68AB2D #2DAB70
monochromatic
#4A1448 #7B2078 #AB2DA7 #CE47CA #DB77D8

Accessibility & contrast

On white

5.73
#AB2DA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AB2DA7
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2DA7#FFFFFF#000000##FFFFFF
##AB2DA71.005.733.675.73
#FFFFFF5.731.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A5BAA
Deuteranopia (green-blind)
#526CA4
Tritanopia (blue-blind)
#B13F68
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #ab2da7;
/* rgb */ color: rgb(171, 45, 167);
/* oklch */ color: oklch(53.8% 0.209 329.4);
Tailwind
colors: {
  custom: {
    50: '#c873c1',
    500: '#ab2da7',
    950: '#000000',
  },
}
SCSS
$custom: #ab2da7;
$custom-light: #c873c1;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2da7",
  "rgb": {
    "r": 171,
    "g": 45,
    "b": 167
  },
  "hsl": {
    "h": 301.905,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.53833,
    "c": 0.20866,
    "h": 329.4
  },
  "luminance": 0.13325
}

Semantic roles & 50–950 ramp

primary
#AB2DA7
secondary
#71C373
accent
#E24B46
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AB2DA7

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

Preview Lab → · Contrast checker → · Palette generator →

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