#AB2EA2#AB2EA2

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

Color values

HEX#AB2EA2
RGBrgb(171, 46, 162)
HSLhsl(304, 58%, 43%)
HSVhsv(304, 73%, 67%)
CMYKcmyk(0%, 73.1%, 5.3%, 32.9%)
CIE-LABlab(43.10, 62.58, -35.70)
CIE-LCHlch(43.10, 72.05, 330.30°)
OKLaboklab(53.64% 0.1785 -0.0983)
OKLCHoklch(53.64% 0.204 331.2)
XYZxyz(24.2931, 13.2225, 35.4481)
Luminance0.1322 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2EA2 #2EAB37
analogous
#752EAB #AB2EA2 #AB2E63
triadic
#AB2EA2 #A2AB2E #2EA2AB
tetradic
#AB2EA2 #AB752E #2EAB37 #2E63AB
square
#AB2EA2 #AB752E #2EAB37 #2E63AB
split-complementary
#AB2EA2 #63AB2E #2EAB75
monochromatic
#4B1447 #7B2174 #AB2EA2 #CE48C4 #DB79D4

Accessibility & contrast

On white

5.76
#AB2EA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AB2EA2
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2EA2#FFFFFF#000000##FFFFFF
##AB2EA21.005.763.645.76
#FFFFFF5.761.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#235BA5
Deuteranopia (green-blind)
#556C9F
Tritanopia (blue-blind)
#B23D65
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #ab2ea2;
/* rgb */ color: rgb(171, 46, 162);
/* oklch */ color: oklch(53.6% 0.204 331.2);
Tailwind
colors: {
  custom: {
    50: '#c873be',
    500: '#ab2ea2',
    950: '#000000',
  },
}
SCSS
$custom: #ab2ea2;
$custom-light: #c873be;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2ea2",
  "rgb": {
    "r": 171,
    "g": 46,
    "b": 162
  },
  "hsl": {
    "h": 304.32,
    "s": 57.604,
    "l": 42.549
  },
  "oklch": {
    "l": 0.53635,
    "c": 0.20381,
    "h": 331.2
  },
  "luminance": 0.13221
}

Semantic roles & 50–950 ramp

primary
#AB2EA2
secondary
#72C378
accent
#E15247
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AB2EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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