#AB2EA4#AB2EA4

#AB2EA4 is a mid, highly saturated purple. Relative luminance 0.133; OKLCH L 53.7% C 0.205 H 330.4°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#AB2EA4
RGBrgb(171, 46, 164)
HSLhsl(303, 58%, 43%)
HSVhsv(303, 73%, 67%)
CMYKcmyk(0%, 73.1%, 4.1%, 32.9%)
CIE-LABlab(43.20, 62.90, -36.72)
CIE-LCHlch(43.20, 72.84, 329.72°)
OKLaboklab(53.75% 0.1786 -0.1013)
OKLCHoklch(53.75% 0.205 330.4)
XYZxyz(24.4723, 13.2942, 36.3919)
Luminance0.1329 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2EA4 #2EAB35
analogous
#732EAB #AB2EA4 #AB2E65
triadic
#AB2EA4 #A4AB2E #2EA4AB
tetradic
#AB2EA4 #AB732E #2EAB35 #2E65AB
square
#AB2EA4 #AB732E #2EAB35 #2E65AB
split-complementary
#AB2EA4 #65AB2E #2EAB73
monochromatic
#4B1447 #7B2176 #AB2EA4 #CE48C6 #DB79D5

Accessibility & contrast

On white

5.74
#AB2EA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#AB2EA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2EA4
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2EA4#FFFFFF#000000##FFFFFF
##AB2EA41.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#205BA7
Deuteranopia (green-blind)
#546CA1
Tritanopia (blue-blind)
#B23E66
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #ab2ea4;
/* rgb */ color: rgb(171, 46, 164);
/* oklch */ color: oklch(53.7% 0.205 330.4);
Tailwind
colors: {
  custom: {
    50: '#c874bf',
    500: '#ab2ea4',
    950: '#000000',
  },
}
SCSS
$custom: #ab2ea4;
$custom-light: #c874bf;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2ea4",
  "rgb": {
    "r": 171,
    "g": 46,
    "b": 164
  },
  "hsl": {
    "h": 303.36,
    "s": 57.604,
    "l": 42.549
  },
  "oklch": {
    "l": 0.53746,
    "c": 0.20531,
    "h": 330.4
  },
  "luminance": 0.13292
}

Semantic roles & 50–950 ramp

primary
#AB2EA4
secondary
#72C376
accent
#E15047
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AB2EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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