#AB2EA6#AB2EA6

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

Color values

HEX#AB2EA6
RGBrgb(171, 46, 166)
HSLhsl(302, 58%, 43%)
HSVhsv(302, 73%, 67%)
CMYKcmyk(0%, 73.1%, 2.9%, 32.9%)
CIE-LABlab(43.31, 63.22, -37.74)
CIE-LCHlch(43.31, 73.63, 329.16°)
OKLaboklab(53.86% 0.1786 -0.1042)
OKLCHoklch(53.86% 0.207 329.7)
XYZxyz(24.6544, 13.3670, 37.3506)
Luminance0.1336 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2EA6 #2EAB33
analogous
#712EAB #AB2EA6 #AB2E67
triadic
#AB2EA6 #A6AB2E #2EA6AB
tetradic
#AB2EA6 #AB712E #2EAB33 #2E67AB
square
#AB2EA6 #AB712E #2EAB33 #2E67AB
split-complementary
#AB2EA6 #67AB2E #2EAB71
monochromatic
#4B1448 #7B2177 #AB2EA6 #CE48C9 #DB79D7

Accessibility & contrast

On white

5.72
#AB2EA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#AB2EA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2EA6
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2EA6#FFFFFF#000000##FFFFFF
##AB2EA61.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E5CA9
Deuteranopia (green-blind)
#536CA3
Tritanopia (blue-blind)
#B13F67
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #ab2ea6;
/* rgb */ color: rgb(171, 46, 166);
/* oklch */ color: oklch(53.9% 0.207 329.7);
Tailwind
colors: {
  custom: {
    50: '#c874c1',
    500: '#ab2ea6',
    950: '#000000',
  },
}
SCSS
$custom: #ab2ea6;
$custom-light: #c874c1;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2ea6",
  "rgb": {
    "r": 171,
    "g": 46,
    "b": 166
  },
  "hsl": {
    "h": 302.4,
    "s": 57.604,
    "l": 42.549
  },
  "oklch": {
    "l": 0.53858,
    "c": 0.20683,
    "h": 329.7
  },
  "luminance": 0.13365
}

Semantic roles & 50–950 ramp

primary
#AB2EA6
secondary
#72C375
accent
#E14D47
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AB2EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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