#AB2E9D#AB2E9D

#AB2E9D is a mid, highly saturated purple. Relative luminance 0.130; OKLCH L 53.4% C 0.200 H 333.0°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#AB2E9D
RGBrgb(171, 46, 157)
HSLhsl(307, 58%, 43%)
HSVhsv(307, 73%, 67%)
CMYKcmyk(0%, 73.1%, 8.2%, 32.9%)
CIE-LABlab(42.84, 61.80, -33.11)
CIE-LCHlch(42.84, 70.11, 331.82°)
OKLaboklab(53.36% 0.1783 -0.0909)
OKLCHoklch(53.36% 0.2 333)
XYZxyz(23.8575, 13.0482, 33.1538)
Luminance0.1305 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2E9D #2EAB3C
analogous
#7B2EAB #AB2E9D #AB2E5E
triadic
#AB2E9D #9DAB2E #2E9DAB
tetradic
#AB2E9D #AB7B2E #2EAB3C #2E5EAB
square
#AB2E9D #AB7B2E #2EAB3C #2E5EAB
split-complementary
#AB2E9D #5EAB2E #2EAB7B
monochromatic
#4B1444 #7B2171 #AB2E9D #CE48BF #DB79D0

Accessibility & contrast

On white

5.82
#AB2E9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#AB2E9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2E9D
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2E9D#FFFFFF#000000##FFFFFF
##AB2E9D1.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295AA0
Deuteranopia (green-blind)
#576B9A
Tritanopia (blue-blind)
#B33B62
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ab2e9d;
/* rgb */ color: rgb(171, 46, 157);
/* oklch */ color: oklch(53.4% 0.200 333.0);
Tailwind
colors: {
  custom: {
    50: '#c873ba',
    500: '#ab2e9d',
    950: '#000000',
  },
}
SCSS
$custom: #ab2e9d;
$custom-light: #c873ba;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2e9d",
  "rgb": {
    "r": 171,
    "g": 46,
    "b": 157
  },
  "hsl": {
    "h": 306.72,
    "s": 57.604,
    "l": 42.549
  },
  "oklch": {
    "l": 0.53363,
    "c": 0.2001,
    "h": 333
  },
  "luminance": 0.13046
}

Semantic roles & 50–950 ramp

primary
#AB2E9D
secondary
#72C37B
accent
#E15847
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AB2E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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