#AB2EAC#AB2EAC

#AB2EAC is a mid, highly saturated purple. Relative luminance 0.136; OKLCH L 54.2% C 0.211 H 327.7°. Best body text is #FFFFFF at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#AB2EAC
RGBrgb(171, 46, 172)
HSLhsl(300, 58%, 43%)
HSVhsv(300, 73%, 67%)
CMYKcmyk(0.6%, 73.3%, 0%, 32.5%)
CIE-LABlab(43.64, 64.21, -40.79)
CIE-LCHlch(43.64, 76.07, 327.58°)
OKLaboklab(54.2% 0.1787 -0.1131)
OKLCHoklch(54.2% 0.211 327.7)
XYZxyz(25.2176, 13.5923, 40.3171)
Luminance0.1359 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2EAC #2FAC2E
analogous
#6C2EAC #AB2EAC #AC2E6E
triadic
#AB2EAC #ACAB2E #2EACAB
tetradic
#AB2EAC #AC6C2E #2FAC2E #2E6EAC
square
#AB2EAC #AC6C2E #2FAC2E #2E6EAC
split-complementary
#AB2EAC #6EAC2E #2EAC6C
monochromatic
#4B144B #7B217C #AB2EAC #CD49CE #DA79DB

Accessibility & contrast

On white

5.65
#AB2EAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#AB2EAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2EAC
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2EAC#FFFFFF#000000##FFFFFF
##AB2EAC1.005.653.725.65
#FFFFFF5.651.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#125DAF
Deuteranopia (green-blind)
#4F6DA9
Tritanopia (blue-blind)
#B0426B
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #ab2eac;
/* rgb */ color: rgb(171, 46, 172);
/* oklch */ color: oklch(54.2% 0.211 327.7);
Tailwind
colors: {
  custom: {
    50: '#c874c5',
    500: '#ab2eac',
    950: '#000000',
  },
}
SCSS
$custom: #ab2eac;
$custom-light: #c874c5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2eac",
  "rgb": {
    "r": 171,
    "g": 46,
    "b": 172
  },
  "hsl": {
    "h": 299.524,
    "s": 57.798,
    "l": 42.745
  },
  "oklch": {
    "l": 0.54202,
    "c": 0.21144,
    "h": 327.7
  },
  "luminance": 0.1359
}

Semantic roles & 50–950 ramp

primary
#AB2EAC
secondary
#73C372
accent
#E14748
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AB2EAC

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

Preview Lab → · Contrast checker → · Palette generator →

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