#AB2AB5#AB2AB5

#AB2AB5 is a mid, highly saturated purple. Relative luminance 0.137; OKLCH L 54.4% C 0.222 H 324.8°. Best body text is #FFFFFF at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#AB2AB5
RGBrgb(171, 42, 181)
HSLhsl(296, 62%, 44%)
HSVhsv(296, 77%, 71%)
CMYKcmyk(5.5%, 76.8%, 0%, 29%)
CIE-LABlab(43.73, 66.96, -45.97)
CIE-LCHlch(43.73, 81.22, 325.53°)
OKLaboklab(54.43% 0.1818 -0.1281)
OKLCHoklch(54.43% 0.222 324.8)
XYZxyz(25.9624, 13.6518, 44.9747)
Luminance0.1365 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2AB5 #34B52A
analogous
#652AB5 #AB2AB5 #B52A79
triadic
#AB2AB5 #B5AB2A #2AB5AB
tetradic
#AB2AB5 #B5652A #34B52A #2A79B5
square
#AB2AB5 #B5652A #34B52A #2A79B5
split-complementary
#AB2AB5 #79B52A #2AB565
monochromatic
#4D1352 #7C1E83 #AB2AB5 #CA48D4 #D979E0

Accessibility & contrast

On white

5.63
#AB2AB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#AB2AB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2AB5
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2AB5#FFFFFF#000000##FFFFFF
##AB2AB51.005.633.735.63
#FFFFFF5.631.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB9
Deuteranopia (green-blind)
#486DB2
Tritanopia (blue-blind)
#AF446F
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #ab2ab5;
/* rgb */ color: rgb(171, 42, 181);
/* oklch */ color: oklch(54.4% 0.222 324.8);
Tailwind
colors: {
  custom: {
    50: '#c873cc',
    500: '#ab2ab5',
    950: '#000000',
  },
}
SCSS
$custom: #ab2ab5;
$custom-light: #c873cc;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2ab5",
  "rgb": {
    "r": 171,
    "g": 42,
    "b": 181
  },
  "hsl": {
    "h": 295.683,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.54432,
    "c": 0.22245,
    "h": 324.8
  },
  "luminance": 0.1365
}

Semantic roles & 50–950 ramp

primary
#AB2AB5
secondary
#79C873
accent
#E5424E
background
#FCF7FC
surface
#F9EDF9
border
#D2C8D2
text
#140913
muted
#827B82

Preview Lab

Preview with #AB2AB5

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

Preview Lab → · Contrast checker → · Palette generator →

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