#AB2AA9#AB2AA9

#AB2AA9 is a mid, highly saturated purple. Relative luminance 0.132; OKLCH L 53.7% C 0.213 H 328.7°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#AB2AA9
RGBrgb(171, 42, 169)
HSLhsl(301, 61%, 42%)
HSVhsv(301, 75%, 67%)
CMYKcmyk(0%, 75.4%, 1.2%, 32.9%)
CIE-LABlab(43.03, 64.98, -39.97)
CIE-LCHlch(43.03, 76.29, 328.40°)
OKLaboklab(53.71% 0.1823 -0.1107)
OKLCHoklch(53.71% 0.213 328.7)
XYZxyz(24.7837, 13.1803, 38.7671)
Luminance0.1318 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2AA9 #2AAB2C
analogous
#6D2AAB #AB2AA9 #AB2A69
triadic
#AB2AA9 #A9AB2A #2AA9AB
tetradic
#AB2AA9 #AB6D2A #2AAB2C #2A69AB
square
#AB2AA9 #AB6D2A #2AAB2C #2A69AB
split-complementary
#AB2AA9 #69AB2A #2AAB6D
monochromatic
#491248 #7A1E78 #AB2AA9 #D142CE #DD73DB

Accessibility & contrast

On white

5.78
#AB2AA9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#AB2AA9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2AA9
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2AA9#FFFFFF#000000##FFFFFF
##AB2AA91.005.783.645.78
#FFFFFF5.781.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#105BAC
Deuteranopia (green-blind)
#4F6BA6
Tritanopia (blue-blind)
#B13E68
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #ab2aa9;
/* rgb */ color: rgb(171, 42, 169);
/* oklch */ color: oklch(53.7% 0.213 328.7);
Tailwind
colors: {
  custom: {
    50: '#c872c3',
    500: '#ab2aa9',
    950: '#000000',
  },
}
SCSS
$custom: #ab2aa9;
$custom-light: #c872c3;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2aa9",
  "rgb": {
    "r": 171,
    "g": 42,
    "b": 169
  },
  "hsl": {
    "h": 300.93,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.53713,
    "c": 0.21324,
    "h": 328.7
  },
  "luminance": 0.13178
}

Semantic roles & 50–950 ramp

primary
#AB2AA9
secondary
#6DC46E
accent
#E44744
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140912
muted
#827B81

Preview Lab

Preview with #AB2AA9

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

Preview Lab → · Contrast checker → · Palette generator →

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