#AB2AA6#AB2AA6

#AB2AA6 is a mid, highly saturated purple. Relative luminance 0.131; OKLCH L 53.5% C 0.211 H 329.8°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#AB2AA6
RGBrgb(171, 42, 166)
HSLhsl(302, 61%, 42%)
HSVhsv(302, 75%, 67%)
CMYKcmyk(0%, 75.4%, 2.9%, 32.9%)
CIE-LABlab(42.87, 64.50, -38.45)
CIE-LCHlch(42.87, 75.09, 329.20°)
OKLaboklab(53.54% 0.1823 -0.1063)
OKLCHoklch(53.54% 0.211 329.8)
XYZxyz(24.5053, 13.0689, 37.3009)
Luminance0.1307 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2AA6 #2AAB2F
analogous
#702AAB #AB2AA6 #AB2A65
triadic
#AB2AA6 #A6AB2A #2AA6AB
tetradic
#AB2AA6 #AB702A #2AAB2F #2A65AB
square
#AB2AA6 #AB702A #2AAB2F #2A65AB
split-complementary
#AB2AA6 #65AB2A #2AAB70
monochromatic
#491247 #7A1E76 #AB2AA6 #D142CB #DD73D8

Accessibility & contrast

On white

5.81
#AB2AA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#AB2AA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2AA6
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2AA6#FFFFFF#000000##FFFFFF
##AB2AA61.005.813.615.81
#FFFFFF5.811.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#165AA9
Deuteranopia (green-blind)
#516BA3
Tritanopia (blue-blind)
#B13C66
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ab2aa6;
/* rgb */ color: rgb(171, 42, 166);
/* oklch */ color: oklch(53.5% 0.211 329.8);
Tailwind
colors: {
  custom: {
    50: '#c872c1',
    500: '#ab2aa6',
    950: '#000000',
  },
}
SCSS
$custom: #ab2aa6;
$custom-light: #c872c1;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2aa6",
  "rgb": {
    "r": 171,
    "g": 42,
    "b": 166
  },
  "hsl": {
    "h": 302.326,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.5354,
    "c": 0.21099,
    "h": 329.8
  },
  "luminance": 0.13067
}

Semantic roles & 50–950 ramp

primary
#AB2AA6
secondary
#6DC470
accent
#E44A44
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AB2AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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