#AB2AD4#AB2AD4

#AB2AD4 is a mid, highly saturated purple. Relative luminance 0.151; OKLCH L 56.5% C 0.247 H 316.1°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#AB2AD4
RGBrgb(171, 42, 212)
HSLhsl(286, 67%, 50%)
HSVhsv(286, 80%, 83%)
CMYKcmyk(19.3%, 80.2%, 0%, 16.9%)
CIE-LABlab(45.73, 72.48, -60.78)
CIE-LCHlch(45.73, 94.59, 320.02°)
OKLaboklab(56.48% 0.178 -0.1715)
OKLCHoklch(56.48% 0.247 316.1)
XYZxyz(29.5043, 15.0685, 63.6290)
Luminance0.1507 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2AD4 #53D42A
analogous
#562AD4 #AB2AD4 #D42AA8
triadic
#AB2AD4 #D4AB2A #2AD4AB
tetradic
#AB2AD4 #D4562A #53D42A #2AA8D4
square
#AB2AD4 #D4562A #53D42A #2AA8D4
split-complementary
#AB2AD4 #A8D42A #2AD456
monochromatic
#59166E #8220A1 #AB2AD4 #BF5CDF #D38FE9

Accessibility & contrast

On white

5.23
#AB2AD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#AB2AD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2AD4
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2AD4#FFFFFF#000000##FFFFFF
##AB2AD41.005.234.015.23
#FFFFFF5.231.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D8
Deuteranopia (green-blind)
#2670D0
Tritanopia (blue-blind)
#A85381
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ab2ad4;
/* rgb */ color: rgb(171, 42, 212);
/* oklch */ color: oklch(56.5% 0.247 316.1);
Tailwind
colors: {
  custom: {
    50: '#c974e2',
    500: '#ab2ad4',
    950: '#000000',
  },
}
SCSS
$custom: #ab2ad4;
$custom-light: #c974e2;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2ad4",
  "rgb": {
    "r": 171,
    "g": 42,
    "b": 212
  },
  "hsl": {
    "h": 285.529,
    "s": 66.929,
    "l": 49.804
  },
  "oklch": {
    "l": 0.56478,
    "c": 0.24717,
    "h": 316.1
  },
  "luminance": 0.15067
}

Semantic roles & 50–950 ramp

primary
#AB2AD4
secondary
#99D386
accent
#EA3E67
background
#FCF7FE
surface
#F9EEFC
border
#D2C9D5
text
#140915
muted
#827B84

Preview Lab

Preview with #AB2AD4

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

Preview Lab → · Contrast checker → · Palette generator →

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