#AB2E9B#AB2E9B

#AB2E9B is a mid, vivid purple. Relative luminance 0.130; OKLCH L 53.3% C 0.199 H 333.7°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#AB2E9B
RGBrgb(171, 46, 155)
HSLhsl(308, 58%, 43%)
HSVhsv(308, 73%, 67%)
CMYKcmyk(0%, 73.1%, 9.4%, 32.9%)
CIE-LABlab(42.73, 61.49, -32.07)
CIE-LCHlch(42.73, 69.35, 332.46°)
OKLaboklab(53.26% 0.1781 -0.0879)
OKLCHoklch(53.26% 0.199 333.7)
XYZxyz(23.6882, 12.9805, 32.2619)
Luminance0.1298 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2E9B #2EAB3E
analogous
#7D2EAB #AB2E9B #AB2E5C
triadic
#AB2E9B #9BAB2E #2E9BAB
tetradic
#AB2E9B #AB7D2E #2EAB3E #2E5CAB
square
#AB2E9B #AB7D2E #2EAB3E #2E5CAB
split-complementary
#AB2E9B #5CAB2E #2EAB7D
monochromatic
#4B1444 #7B216F #AB2E9B #CE48BD #DB79CE

Accessibility & contrast

On white

5.84
#AB2E9B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#AB2E9B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2E9B
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2E9B#FFFFFF#000000##FFFFFF
##AB2E9B1.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A599E
Deuteranopia (green-blind)
#586B98
Tritanopia (blue-blind)
#B33A61
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ab2e9b;
/* rgb */ color: rgb(171, 46, 155);
/* oklch */ color: oklch(53.3% 0.199 333.7);
Tailwind
colors: {
  custom: {
    50: '#c873b9',
    500: '#ab2e9b',
    950: '#000000',
  },
}
SCSS
$custom: #ab2e9b;
$custom-light: #c873b9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2e9b",
  "rgb": {
    "r": 171,
    "g": 46,
    "b": 155
  },
  "hsl": {
    "h": 307.68,
    "s": 57.604,
    "l": 42.549
  },
  "oklch": {
    "l": 0.53256,
    "c": 0.19863,
    "h": 333.7
  },
  "luminance": 0.12978
}

Semantic roles & 50–950 ramp

primary
#AB2E9B
secondary
#72C37C
accent
#E15B47
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AB2E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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