#AB2BA4#AB2BA4

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

Color values

HEX#AB2BA4
RGBrgb(171, 43, 164)
HSLhsl(303, 60%, 42%)
HSVhsv(303, 75%, 67%)
CMYKcmyk(0%, 74.9%, 4.1%, 32.9%)
CIE-LABlab(42.87, 63.87, -37.26)
CIE-LCHlch(42.87, 73.94, 329.74°)
OKLaboklab(53.5% 0.1814 -0.1028)
OKLCHoklch(53.5% 0.208 330.5)
XYZxyz(24.3592, 13.0679, 36.3542)
Luminance0.1307 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2BA4 #2BAB32
analogous
#722BAB #AB2BA4 #AB2B64
triadic
#AB2BA4 #A4AB2B #2BA4AB
tetradic
#AB2BA4 #AB722B #2BAB32 #2B64AB
square
#AB2BA4 #AB722B #2BAB32 #2B64AB
split-complementary
#AB2BA4 #64AB2B #2BAB72
monochromatic
#491246 #7A1F75 #AB2BA4 #D043C8 #DC74D6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AB2BA4#FFFFFF#000000##FFFFFF
##AB2BA41.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)
#1C5AA7
Deuteranopia (green-blind)
#536BA1
Tritanopia (blue-blind)
#B23C65
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ab2ba4;
/* rgb */ color: rgb(171, 43, 164);
/* oklch */ color: oklch(53.5% 0.208 330.5);
Tailwind
colors: {
  custom: {
    50: '#c872bf',
    500: '#ab2ba4',
    950: '#000000',
  },
}
SCSS
$custom: #ab2ba4;
$custom-light: #c872bf;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2ba4",
  "rgb": {
    "r": 171,
    "g": 43,
    "b": 164
  },
  "hsl": {
    "h": 303.281,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.53504,
    "c": 0.20848,
    "h": 330.5
  },
  "luminance": 0.13066
}

Semantic roles & 50–950 ramp

primary
#AB2BA4
secondary
#6EC473
accent
#E34D45
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AB2BA4

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

Preview Lab → · Contrast checker → · Palette generator →

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