#AB2AB7#AB2AB7

#AB2AB7 is a mid, highly saturated purple. Relative luminance 0.137; OKLCH L 54.6% C 0.224 H 324.2°. Best body text is #FFFFFF at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#AB2AB7
RGBrgb(171, 42, 183)
HSLhsl(295, 63%, 44%)
HSVhsv(295, 77%, 72%)
CMYKcmyk(6.6%, 77%, 0%, 28.2%)
CIE-LABlab(43.85, 67.30, -46.95)
CIE-LCHlch(43.85, 82.06, 325.10°)
OKLaboklab(54.56% 0.1817 -0.131)
OKLCHoklch(54.56% 0.224 324.2)
XYZxyz(26.1691, 13.7344, 46.0632)
Luminance0.1373 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2AB7 #36B72A
analogous
#652AB7 #AB2AB7 #B72A7D
triadic
#AB2AB7 #B7AB2A #2AB7AB
tetradic
#AB2AB7 #B7652A #36B72A #2A7DB7
square
#AB2AB7 #B7652A #36B72A #2A7DB7
split-complementary
#AB2AB7 #7DB72A #2AB765
monochromatic
#4E1353 #7C1F85 #AB2AB7 #C949D5 #D87BE1

Accessibility & contrast

On white

5.61
#AB2AB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#AB2AB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2AB7
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2AB7#FFFFFF#000000##FFFFFF
##AB2AB71.005.613.755.61
#FFFFFF5.611.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBB
Deuteranopia (green-blind)
#466DB4
Tritanopia (blue-blind)
#AE4570
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #ab2ab7;
/* rgb */ color: rgb(171, 42, 183);
/* oklch */ color: oklch(54.6% 0.224 324.2);
Tailwind
colors: {
  custom: {
    50: '#c873cd',
    500: '#ab2ab7',
    950: '#000000',
  },
}
SCSS
$custom: #ab2ab7;
$custom-light: #c873cd;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2ab7",
  "rgb": {
    "r": 171,
    "g": 42,
    "b": 183
  },
  "hsl": {
    "h": 294.894,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.54556,
    "c": 0.22401,
    "h": 324.2
  },
  "luminance": 0.13733
}

Semantic roles & 50–950 ramp

primary
#AB2AB7
secondary
#7BC974
accent
#E64250
background
#FCF7FC
surface
#F9EDF9
border
#D2C8D2
text
#140913
muted
#827B82

Preview Lab

Preview with #AB2AB7

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

Preview Lab → · Contrast checker → · Palette generator →

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