#AB2AB9#AB2AB9

#AB2AB9 is a mid, highly saturated purple. Relative luminance 0.138; OKLCH L 54.7% C 0.226 H 323.6°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#AB2AB9
RGBrgb(171, 42, 185)
HSLhsl(294, 63%, 45%)
HSVhsv(294, 77%, 73%)
CMYKcmyk(7.6%, 77.3%, 0%, 27.5%)
CIE-LABlab(43.97, 67.65, -47.93)
CIE-LCHlch(43.97, 82.91, 324.68°)
OKLaboklab(54.68% 0.1816 -0.1339)
OKLCHoklch(54.68% 0.226 323.6)
XYZxyz(26.3787, 13.8183, 47.1673)
Luminance0.1382 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2AB9 #38B92A
analogous
#642AB9 #AB2AB9 #B92A80
triadic
#AB2AB9 #B9AB2A #2AB9AB
tetradic
#AB2AB9 #B9642A #38B92A #2A80B9
square
#AB2AB9 #B9642A #38B92A #2A80B9
split-complementary
#AB2AB9 #80B92A #2AB964
monochromatic
#4F1355 #7D1F87 #AB2AB9 #C84AD6 #D77CE1

Accessibility & contrast

On white

5.58
#AB2AB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AB2AB9
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2AB9#FFFFFF#000000##FFFFFF
##AB2AB91.005.583.765.58
#FFFFFF5.581.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBD
Deuteranopia (green-blind)
#456DB6
Tritanopia (blue-blind)
#AE4671
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #ab2ab9;
/* rgb */ color: rgb(171, 42, 185);
/* oklch */ color: oklch(54.7% 0.226 323.6);
Tailwind
colors: {
  custom: {
    50: '#c873cf',
    500: '#ab2ab9',
    950: '#000000',
  },
}
SCSS
$custom: #ab2ab9;
$custom-light: #c873cf;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2ab9",
  "rgb": {
    "r": 171,
    "g": 42,
    "b": 185
  },
  "hsl": {
    "h": 294.126,
    "s": 62.996,
    "l": 44.51
  },
  "oklch": {
    "l": 0.54681,
    "c": 0.22557,
    "h": 323.6
  },
  "luminance": 0.13817
}

Semantic roles & 50–950 ramp

primary
#AB2AB9
secondary
#7DCA75
accent
#E64252
background
#FCF7FC
surface
#F9EDF9
border
#D2C8D2
text
#140914
muted
#827B82

Preview Lab

Preview with #AB2AB9

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

Preview Lab → · Contrast checker → · Palette generator →

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