#AB2EA8#AB2EA8

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

Color values

HEX#AB2EA8
RGBrgb(171, 46, 168)
HSLhsl(301, 58%, 43%)
HSVhsv(301, 73%, 67%)
CMYKcmyk(0%, 73.1%, 1.8%, 32.9%)
CIE-LABlab(43.42, 63.55, -38.76)
CIE-LCHlch(43.42, 74.44, 328.62°)
OKLaboklab(53.97% 0.1787 -0.1072)
OKLCHoklch(53.97% 0.208 329)
XYZxyz(24.8392, 13.4409, 38.3243)
Luminance0.1344 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2EA8 #2EAB31
analogous
#6F2EAB #AB2EA8 #AB2E69
triadic
#AB2EA8 #A8AB2E #2EA8AB
tetradic
#AB2EA8 #AB6F2E #2EAB31 #2E69AB
square
#AB2EA8 #AB6F2E #2EAB31 #2E69AB
split-complementary
#AB2EA8 #69AB2E #2EAB6F
monochromatic
#4B1449 #7B2179 #AB2EA8 #CE48CB #DB79D8

Accessibility & contrast

On white

5.69
#AB2EA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#AB2EA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2EA8
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2EA8#FFFFFF#000000##FFFFFF
##AB2EA81.005.693.695.69
#FFFFFF5.691.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A5CAB
Deuteranopia (green-blind)
#526CA5
Tritanopia (blue-blind)
#B14068
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #ab2ea8;
/* rgb */ color: rgb(171, 46, 168);
/* oklch */ color: oklch(54.0% 0.208 329.0);
Tailwind
colors: {
  custom: {
    50: '#c874c2',
    500: '#ab2ea8',
    950: '#000000',
  },
}
SCSS
$custom: #ab2ea8;
$custom-light: #c874c2;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2ea8",
  "rgb": {
    "r": 171,
    "g": 46,
    "b": 168
  },
  "hsl": {
    "h": 301.44,
    "s": 57.604,
    "l": 42.549
  },
  "oklch": {
    "l": 0.53972,
    "c": 0.20836,
    "h": 329
  },
  "luminance": 0.13439
}

Semantic roles & 50–950 ramp

primary
#AB2EA8
secondary
#72C374
accent
#E14B47
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140912
muted
#827B81

Preview Lab

Preview with #AB2EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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