#AB2EA7#AB2EA7

#AB2EA7 is a mid, highly saturated purple. Relative luminance 0.134; OKLCH L 53.9% C 0.208 H 329.4°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#AB2EA7
RGBrgb(171, 46, 167)
HSLhsl(302, 58%, 43%)
HSVhsv(302, 73%, 67%)
CMYKcmyk(0%, 73.1%, 2.3%, 32.9%)
CIE-LABlab(43.37, 63.39, -38.25)
CIE-LCHlch(43.37, 74.04, 328.89°)
OKLaboklab(53.92% 0.1787 -0.1057)
OKLCHoklch(53.92% 0.208 329.4)
XYZxyz(24.7464, 13.4038, 37.8355)
Luminance0.1340 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2EA7 #2EAB32
analogous
#702EAB #AB2EA7 #AB2E68
triadic
#AB2EA7 #A7AB2E #2EA7AB
tetradic
#AB2EA7 #AB702E #2EAB32 #2E68AB
square
#AB2EA7 #AB702E #2EAB32 #2E68AB
split-complementary
#AB2EA7 #68AB2E #2EAB70
monochromatic
#4B1449 #7B2178 #AB2EA7 #CE48CA #DB79D8

Accessibility & contrast

On white

5.71
#AB2EA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#AB2EA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2EA7
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2EA7#FFFFFF#000000##FFFFFF
##AB2EA71.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C5CAA
Deuteranopia (green-blind)
#526CA4
Tritanopia (blue-blind)
#B14068
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #ab2ea7;
/* rgb */ color: rgb(171, 46, 167);
/* oklch */ color: oklch(53.9% 0.208 329.4);
Tailwind
colors: {
  custom: {
    50: '#c874c1',
    500: '#ab2ea7',
    950: '#000000',
  },
}
SCSS
$custom: #ab2ea7;
$custom-light: #c874c1;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2ea7",
  "rgb": {
    "r": 171,
    "g": 46,
    "b": 167
  },
  "hsl": {
    "h": 301.92,
    "s": 57.604,
    "l": 42.549
  },
  "oklch": {
    "l": 0.53915,
    "c": 0.2076,
    "h": 329.4
  },
  "luminance": 0.13402
}

Semantic roles & 50–950 ramp

primary
#AB2EA7
secondary
#72C374
accent
#E14C47
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AB2EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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