#AB2F9A#AB2F9A

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

Color values

HEX#AB2F9A
RGBrgb(171, 47, 154)
HSLhsl(308, 57%, 43%)
HSVhsv(308, 73%, 67%)
CMYKcmyk(0%, 72.5%, 9.9%, 32.9%)
CIE-LABlab(42.80, 61.00, -31.36)
CIE-LCHlch(42.80, 68.59, 332.79°)
OKLaboklab(53.29% 0.1771 -0.0858)
OKLCHoklch(53.29% 0.197 334.1)
XYZxyz(23.6440, 13.0261, 31.8346)
Luminance0.1302 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2F9A #2FAB40
analogous
#7E2FAB #AB2F9A #AB2F5C
triadic
#AB2F9A #9AAB2F #2F9AAB
tetradic
#AB2F9A #AB7E2F #2FAB40 #2F5CAB
square
#AB2F9A #AB7E2F #2FAB40 #2F5CAB
split-complementary
#AB2F9A #5CAB2F #2FAB7E
monochromatic
#4B1544 #7B226F #AB2F9A #CD4ABB #DA7ACD

Accessibility & contrast

On white

5.83
#AB2F9A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AB2F9A
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2F9A#FFFFFF#000000##FFFFFF
##AB2F9A1.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D599D
Deuteranopia (green-blind)
#596C97
Tritanopia (blue-blind)
#B33A61
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ab2f9a;
/* rgb */ color: rgb(171, 47, 154);
/* oklch */ color: oklch(53.3% 0.197 334.1);
Tailwind
colors: {
  custom: {
    50: '#c874b8',
    500: '#ab2f9a',
    950: '#000000',
  },
}
SCSS
$custom: #ab2f9a;
$custom-light: #c874b8;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2f9a",
  "rgb": {
    "r": 171,
    "g": 47,
    "b": 154
  },
  "hsl": {
    "h": 308.226,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.53289,
    "c": 0.19677,
    "h": 334.1
  },
  "luminance": 0.13024
}

Semantic roles & 50–950 ramp

primary
#AB2F9A
secondary
#73C37E
accent
#E05D48
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AB2F9A

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

Preview Lab → · Contrast checker → · Palette generator →

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