#AB2AB8#AB2AB8

#AB2AB8 is a mid, highly saturated purple. Relative luminance 0.138; OKLCH L 54.6% C 0.225 H 323.9°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#AB2AB8
RGBrgb(171, 42, 184)
HSLhsl(295, 63%, 44%)
HSVhsv(295, 77%, 72%)
CMYKcmyk(7.1%, 77.2%, 0%, 27.8%)
CIE-LABlab(43.91, 67.48, -47.44)
CIE-LCHlch(43.91, 82.48, 324.89°)
OKLaboklab(54.62% 0.1816 -0.1324)
OKLCHoklch(54.62% 0.225 323.9)
XYZxyz(26.2735, 13.7762, 46.6133)
Luminance0.1378 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2AB8 #37B82A
analogous
#642AB8 #AB2AB8 #B82A7E
triadic
#AB2AB8 #B8AB2A #2AB8AB
tetradic
#AB2AB8 #B8642A #37B82A #2A7EB8
square
#AB2AB8 #B8642A #37B82A #2A7EB8
split-complementary
#AB2AB8 #7EB82A #2AB864
monochromatic
#4E1354 #7D1F86 #AB2AB8 #C94AD6 #D87BE1

Accessibility & contrast

On white

5.59
#AB2AB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#AB2AB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2AB8
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2AB8#FFFFFF#000000##FFFFFF
##AB2AB81.005.593.765.59
#FFFFFF5.591.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBC
Deuteranopia (green-blind)
#456DB5
Tritanopia (blue-blind)
#AE4571
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #ab2ab8;
/* rgb */ color: rgb(171, 42, 184);
/* oklch */ color: oklch(54.6% 0.225 323.9);
Tailwind
colors: {
  custom: {
    50: '#c873ce',
    500: '#ab2ab8',
    950: '#000000',
  },
}
SCSS
$custom: #ab2ab8;
$custom-light: #c873ce;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2ab8",
  "rgb": {
    "r": 171,
    "g": 42,
    "b": 184
  },
  "hsl": {
    "h": 294.507,
    "s": 62.832,
    "l": 44.314
  },
  "oklch": {
    "l": 0.54619,
    "c": 0.22479,
    "h": 323.9
  },
  "luminance": 0.13775
}

Semantic roles & 50–950 ramp

primary
#AB2AB8
secondary
#7CC975
accent
#E64251
background
#FCF7FC
surface
#F9EDF9
border
#D2C8D2
text
#140914
muted
#827B82

Preview Lab

Preview with #AB2AB8

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

Preview Lab → · Contrast checker → · Palette generator →

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