#AB2AB4#AB2AB4

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

Color values

HEX#AB2AB4
RGBrgb(171, 42, 180)
HSLhsl(296, 62%, 44%)
HSVhsv(296, 77%, 71%)
CMYKcmyk(5%, 76.7%, 0%, 29.4%)
CIE-LABlab(43.67, 66.80, -45.47)
CIE-LCHlch(43.67, 80.80, 325.75°)
OKLaboklab(54.37% 0.1819 -0.1267)
OKLCHoklch(54.37% 0.222 325.1)
XYZxyz(25.8602, 13.6109, 44.4363)
Luminance0.1361 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2AB4 #33B42A
analogous
#662AB4 #AB2AB4 #B42A78
triadic
#AB2AB4 #B4AB2A #2AB4AB
tetradic
#AB2AB4 #B4662A #33B42A #2A78B4
square
#AB2AB4 #B4662A #33B42A #2A78B4
split-complementary
#AB2AB4 #78B42A #2AB466
monochromatic
#4D1351 #7C1E82 #AB2AB4 #CB47D4 #D979E0

Accessibility & contrast

On white

5.64
#AB2AB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#AB2AB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2AB4
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2AB4#FFFFFF#000000##FFFFFF
##AB2AB41.005.643.725.64
#FFFFFF5.641.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB8
Deuteranopia (green-blind)
#486CB1
Tritanopia (blue-blind)
#AF446E
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #ab2ab4;
/* rgb */ color: rgb(171, 42, 180);
/* oklch */ color: oklch(54.4% 0.222 325.1);
Tailwind
colors: {
  custom: {
    50: '#c873cb',
    500: '#ab2ab4',
    950: '#000000',
  },
}
SCSS
$custom: #ab2ab4;
$custom-light: #c873cb;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2ab4",
  "rgb": {
    "r": 171,
    "g": 42,
    "b": 180
  },
  "hsl": {
    "h": 296.087,
    "s": 62.162,
    "l": 43.529
  },
  "oklch": {
    "l": 0.5437,
    "c": 0.22167,
    "h": 325.1
  },
  "luminance": 0.13609
}

Semantic roles & 50–950 ramp

primary
#AB2AB4
secondary
#78C872
accent
#E5434D
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AB2AB4

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

Preview Lab → · Contrast checker → · Palette generator →

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