#AB2AAA#AB2AAA

#AB2AAA is a mid, highly saturated purple. Relative luminance 0.132; OKLCH L 53.8% C 0.214 H 328.4°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#AB2AAA
RGBrgb(171, 42, 170)
HSLhsl(300, 61%, 42%)
HSVhsv(300, 75%, 67%)
CMYKcmyk(0%, 75.4%, 0.6%, 32.9%)
CIE-LABlab(43.09, 65.14, -40.48)
CIE-LCHlch(43.09, 76.69, 328.14°)
OKLaboklab(53.77% 0.1823 -0.1121)
OKLCHoklch(53.77% 0.214 328.4)
XYZxyz(24.8780, 13.2180, 39.2634)
Luminance0.1322 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2AAA #2AAB2B
analogous
#6C2AAB #AB2AAA #AB2A6A
triadic
#AB2AAA #AAAB2A #2AAAAB
tetradic
#AB2AAA #AB6C2A #2AAB2B #2A6AAB
square
#AB2AAA #AB6C2A #2AAB2B #2A6AAB
split-complementary
#AB2AAA #6AAB2A #2AAB6C
monochromatic
#491248 #7A1E79 #AB2AAA #D142CF #DD73DC

Accessibility & contrast

On white

5.76
#AB2AAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AB2AAA
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2AAA#FFFFFF#000000##FFFFFF
##AB2AAA1.005.763.645.76
#FFFFFF5.761.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D5BAD
Deuteranopia (green-blind)
#4F6CA7
Tritanopia (blue-blind)
#B13F69
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #ab2aaa;
/* rgb */ color: rgb(171, 42, 170);
/* oklch */ color: oklch(53.8% 0.214 328.4);
Tailwind
colors: {
  custom: {
    50: '#c872c4',
    500: '#ab2aaa',
    950: '#000000',
  },
}
SCSS
$custom: #ab2aaa;
$custom-light: #c872c4;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2aaa",
  "rgb": {
    "r": 171,
    "g": 42,
    "b": 170
  },
  "hsl": {
    "h": 300.465,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.53771,
    "c": 0.214,
    "h": 328.4
  },
  "luminance": 0.13216
}

Semantic roles & 50–950 ramp

primary
#AB2AAA
secondary
#6DC46E
accent
#E44544
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AB2AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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