#AB2EA1#AB2EA1

#AB2EA1 is a mid, highly saturated purple. Relative luminance 0.132; OKLCH L 53.6% C 0.203 H 331.5°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#AB2EA1
RGBrgb(171, 46, 161)
HSLhsl(305, 58%, 43%)
HSVhsv(305, 73%, 67%)
CMYKcmyk(0%, 73.1%, 5.8%, 32.9%)
CIE-LABlab(43.04, 62.43, -35.18)
CIE-LCHlch(43.04, 71.66, 330.60°)
OKLaboklab(53.58% 0.1785 -0.0968)
OKLCHoklch(53.58% 0.203 331.5)
XYZxyz(24.2046, 13.1871, 34.9818)
Luminance0.1318 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2EA1 #2EAB38
analogous
#762EAB #AB2EA1 #AB2E62
triadic
#AB2EA1 #A1AB2E #2EA1AB
tetradic
#AB2EA1 #AB762E #2EAB38 #2E62AB
square
#AB2EA1 #AB762E #2EAB38 #2E62AB
split-complementary
#AB2EA1 #62AB2E #2EAB76
monochromatic
#4B1446 #7B2174 #AB2EA1 #CE48C3 #DB79D3

Accessibility & contrast

On white

5.77
#AB2EA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AB2EA1
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2EA1#FFFFFF#000000##FFFFFF
##AB2EA11.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#245BA4
Deuteranopia (green-blind)
#556C9E
Tritanopia (blue-blind)
#B23D65
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #ab2ea1;
/* rgb */ color: rgb(171, 46, 161);
/* oklch */ color: oklch(53.6% 0.203 331.5);
Tailwind
colors: {
  custom: {
    50: '#c873bd',
    500: '#ab2ea1',
    950: '#000000',
  },
}
SCSS
$custom: #ab2ea1;
$custom-light: #c873bd;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2ea1",
  "rgb": {
    "r": 171,
    "g": 46,
    "b": 161
  },
  "hsl": {
    "h": 304.8,
    "s": 57.604,
    "l": 42.549
  },
  "oklch": {
    "l": 0.5358,
    "c": 0.20306,
    "h": 331.5
  },
  "luminance": 0.13185
}

Semantic roles & 50–950 ramp

primary
#AB2EA1
secondary
#72C378
accent
#E15347
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AB2EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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