#AB2BA5#AB2BA5

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

Color values

HEX#AB2BA5
RGBrgb(171, 43, 165)
HSLhsl(303, 60%, 42%)
HSVhsv(303, 75%, 67%)
CMYKcmyk(0%, 74.9%, 3.5%, 32.9%)
CIE-LABlab(42.92, 64.03, -37.77)
CIE-LCHlch(42.92, 74.34, 329.47°)
OKLaboklab(53.56% 0.1814 -0.1043)
OKLCHoklch(53.56% 0.209 330.1)
XYZxyz(24.4499, 13.1042, 36.8316)
Luminance0.1310 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2BA5 #2BAB31
analogous
#712BAB #AB2BA5 #AB2B65
triadic
#AB2BA5 #A5AB2B #2BA5AB
tetradic
#AB2BA5 #AB712B #2BAB31 #2B65AB
square
#AB2BA5 #AB712B #2BAB31 #2B65AB
split-complementary
#AB2BA5 #65AB2B #2BAB71
monochromatic
#491247 #7A1F76 #AB2BA5 #D043C9 #DC74D7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AB2BA5#FFFFFF#000000##FFFFFF
##AB2BA51.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)
#1A5AA8
Deuteranopia (green-blind)
#526BA2
Tritanopia (blue-blind)
#B13D66
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ab2ba5;
/* rgb */ color: rgb(171, 43, 165);
/* oklch */ color: oklch(53.6% 0.209 330.1);
Tailwind
colors: {
  custom: {
    50: '#c872c0',
    500: '#ab2ba5',
    950: '#000000',
  },
}
SCSS
$custom: #ab2ba5;
$custom-light: #c872c0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2ba5",
  "rgb": {
    "r": 171,
    "g": 43,
    "b": 165
  },
  "hsl": {
    "h": 302.813,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.5356,
    "c": 0.20923,
    "h": 330.1
  },
  "luminance": 0.13102
}

Semantic roles & 50–950 ramp

primary
#AB2BA5
secondary
#6EC472
accent
#E34C45
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AB2BA5

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

Preview Lab → · Contrast checker → · Palette generator →

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