#AB2DA2#AB2DA2

#AB2DA2 is a mid, highly saturated purple. Relative luminance 0.131; OKLCH L 53.6% C 0.205 H 331.2°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#AB2DA2
RGBrgb(171, 45, 162)
HSLhsl(304, 58%, 42%)
HSVhsv(304, 74%, 67%)
CMYKcmyk(0%, 73.7%, 5.3%, 32.9%)
CIE-LABlab(42.98, 62.91, -35.88)
CIE-LCHlch(42.98, 72.42, 330.31°)
OKLaboklab(53.55% 0.1795 -0.0988)
OKLCHoklch(53.55% 0.205 331.2)
XYZxyz(24.2545, 13.1453, 35.4353)
Luminance0.1314 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2DA2 #2DAB36
analogous
#752DAB #AB2DA2 #AB2D63
triadic
#AB2DA2 #A2AB2D #2DA2AB
tetradic
#AB2DA2 #AB752D #2DAB36 #2D63AB
square
#AB2DA2 #AB752D #2DAB36 #2D63AB
split-complementary
#AB2DA2 #63AB2D #2DAB75
monochromatic
#4A1446 #7B2074 #AB2DA2 #CE47C5 #DB77D4

Accessibility & contrast

On white

5.79
#AB2DA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#AB2DA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2DA2
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2DA2#FFFFFF#000000##FFFFFF
##AB2DA21.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#225AA5
Deuteranopia (green-blind)
#556C9F
Tritanopia (blue-blind)
#B23C65
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ab2da2;
/* rgb */ color: rgb(171, 45, 162);
/* oklch */ color: oklch(53.6% 0.205 331.2);
Tailwind
colors: {
  custom: {
    50: '#c873be',
    500: '#ab2da2',
    950: '#000000',
  },
}
SCSS
$custom: #ab2da2;
$custom-light: #c873be;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2da2",
  "rgb": {
    "r": 171,
    "g": 45,
    "b": 162
  },
  "hsl": {
    "h": 304.286,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.53552,
    "c": 0.20489,
    "h": 331.2
  },
  "luminance": 0.13143
}

Semantic roles & 50–950 ramp

primary
#AB2DA2
secondary
#71C377
accent
#E25146
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AB2DA2

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

Preview Lab → · Contrast checker → · Palette generator →

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