#AB2AA4#AB2AA4

#AB2AA4 is a mid, highly saturated purple. Relative luminance 0.130; OKLCH L 53.4% C 0.209 H 330.5°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#AB2AA4
RGBrgb(171, 42, 164)
HSLhsl(303, 61%, 42%)
HSVhsv(303, 75%, 67%)
CMYKcmyk(0%, 75.4%, 4.1%, 32.9%)
CIE-LABlab(42.76, 64.18, -37.43)
CIE-LCHlch(42.76, 74.29, 329.75°)
OKLaboklab(53.43% 0.1823 -0.1033)
OKLCHoklch(53.43% 0.21 330.5)
XYZxyz(24.3233, 12.9961, 36.3422)
Luminance0.1299 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2AA4 #2AAB31
analogous
#722AAB #AB2AA4 #AB2A64
triadic
#AB2AA4 #A4AB2A #2AA4AB
tetradic
#AB2AA4 #AB722A #2AAB31 #2A64AB
square
#AB2AA4 #AB722A #2AAB31 #2A64AB
split-complementary
#AB2AA4 #64AB2A #2AAB72
monochromatic
#491246 #7A1E75 #AB2AA4 #D142C9 #DD73D7

Accessibility & contrast

On white

5.84
#AB2AA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#AB2AA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2AA4
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2AA4#FFFFFF#000000##FFFFFF
##AB2AA41.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A5AA7
Deuteranopia (green-blind)
#526BA1
Tritanopia (blue-blind)
#B23B65
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ab2aa4;
/* rgb */ color: rgb(171, 42, 164);
/* oklch */ color: oklch(53.4% 0.209 330.5);
Tailwind
colors: {
  custom: {
    50: '#c872bf',
    500: '#ab2aa4',
    950: '#000000',
  },
}
SCSS
$custom: #ab2aa4;
$custom-light: #c872bf;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2aa4",
  "rgb": {
    "r": 171,
    "g": 42,
    "b": 164
  },
  "hsl": {
    "h": 303.256,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.53426,
    "c": 0.2095,
    "h": 330.5
  },
  "luminance": 0.12994
}

Semantic roles & 50–950 ramp

primary
#AB2AA4
secondary
#6DC472
accent
#E44D44
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AB2AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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