#AB2A9B#AB2A9B

#AB2A9B is a mid, highly saturated purple. Relative luminance 0.127; OKLCH L 52.9% C 0.203 H 333.7°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#AB2A9B
RGBrgb(171, 42, 155)
HSLhsl(307, 61%, 42%)
HSVhsv(307, 75%, 67%)
CMYKcmyk(0%, 75.4%, 9.4%, 32.9%)
CIE-LABlab(42.28, 62.78, -32.78)
CIE-LCHlch(42.28, 70.83, 332.43°)
OKLaboklab(52.93% 0.1819 -0.0899)
OKLCHoklch(52.93% 0.203 333.7)
XYZxyz(23.5391, 12.6825, 32.2122)
Luminance0.1268 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2A9B #2AAB3A
analogous
#7B2AAB #AB2A9B #AB2A5B
triadic
#AB2A9B #9BAB2A #2A9BAB
tetradic
#AB2A9B #AB7B2A #2AAB3A #2A5BAB
square
#AB2A9B #AB7B2A #2AAB3A #2A5BAB
split-complementary
#AB2A9B #5BAB2A #2AAB7B
monochromatic
#491242 #7A1E6E #AB2A9B #D142BF #DD73CF

Accessibility & contrast

On white

5.94
#AB2A9B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#AB2A9B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2A9B
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2A9B#FFFFFF#000000##FFFFFF
##AB2A9B1.005.943.545.94
#FFFFFF5.941.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26589E
Deuteranopia (green-blind)
#576A98
Tritanopia (blue-blind)
#B33760
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ab2a9b;
/* rgb */ color: rgb(171, 42, 155);
/* oklch */ color: oklch(52.9% 0.203 333.7);
Tailwind
colors: {
  custom: {
    50: '#c872b9',
    500: '#ab2a9b',
    950: '#000000',
  },
}
SCSS
$custom: #ab2a9b;
$custom-light: #c872b9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2a9b",
  "rgb": {
    "r": 171,
    "g": 42,
    "b": 155
  },
  "hsl": {
    "h": 307.442,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.5293,
    "c": 0.20293,
    "h": 333.7
  },
  "luminance": 0.1268
}

Semantic roles & 50–950 ramp

primary
#AB2A9B
secondary
#6DC478
accent
#E45844
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AB2A9B

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

Preview Lab → · Contrast checker → · Palette generator →

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