#AB2AA7#AB2AA7

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

Color values

HEX#AB2AA7
RGBrgb(171, 42, 167)
HSLhsl(302, 61%, 42%)
HSVhsv(302, 75%, 67%)
CMYKcmyk(0%, 75.4%, 2.3%, 32.9%)
CIE-LABlab(42.92, 64.66, -38.96)
CIE-LCHlch(42.92, 75.48, 328.93°)
OKLaboklab(53.6% 0.1823 -0.1077)
OKLCHoklch(53.6% 0.212 329.4)
XYZxyz(24.5974, 13.1058, 37.7859)
Luminance0.1310 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2AA7 #2AAB2E
analogous
#6E2AAB #AB2AA7 #AB2A67
triadic
#AB2AA7 #A7AB2A #2AA7AB
tetradic
#AB2AA7 #AB6E2A #2AAB2E #2A67AB
square
#AB2AA7 #AB6E2A #2AAB2E #2A67AB
split-complementary
#AB2AA7 #67AB2A #2AAB6E
monochromatic
#491247 #7A1E77 #AB2AA7 #D142CC #DD73D9

Accessibility & contrast

On white

5.80
#AB2AA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#AB2AA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2AA7
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2AA7#FFFFFF#000000##FFFFFF
##AB2AA71.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#145AAA
Deuteranopia (green-blind)
#516BA4
Tritanopia (blue-blind)
#B13D67
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ab2aa7;
/* rgb */ color: rgb(171, 42, 167);
/* oklch */ color: oklch(53.6% 0.212 329.4);
Tailwind
colors: {
  custom: {
    50: '#c872c1',
    500: '#ab2aa7',
    950: '#000000',
  },
}
SCSS
$custom: #ab2aa7;
$custom-light: #c872c1;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2aa7",
  "rgb": {
    "r": 171,
    "g": 42,
    "b": 167
  },
  "hsl": {
    "h": 301.86,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.53597,
    "c": 0.21174,
    "h": 329.4
  },
  "luminance": 0.13104
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AB2AA7

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

Preview Lab → · Contrast checker → · Palette generator →

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