#AB2AB3#AB2AB3

#AB2AB3 is a mid, highly saturated purple. Relative luminance 0.136; OKLCH L 54.3% C 0.221 H 325.5°. Best body text is #FFFFFF at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#AB2AB3
RGBrgb(171, 42, 179)
HSLhsl(296, 62%, 43%)
HSVhsv(296, 77%, 70%)
CMYKcmyk(4.5%, 76.5%, 0%, 29.8%)
CIE-LABlab(43.61, 66.63, -44.98)
CIE-LCHlch(43.61, 80.39, 325.98°)
OKLaboklab(54.31% 0.182 -0.1252)
OKLCHoklch(54.31% 0.221 325.5)
XYZxyz(25.7587, 13.5703, 43.9017)
Luminance0.1357 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2AB3 #32B32A
analogous
#662AB3 #AB2AB3 #B32A76
triadic
#AB2AB3 #B3AB2A #2AB3AB
tetradic
#AB2AB3 #B3662A #32B32A #2A76B3
square
#AB2AB3 #B3662A #32B32A #2A76B3
split-complementary
#AB2AB3 #76B32A #2AB366
monochromatic
#4C1350 #7C1E81 #AB2AB3 #CB46D4 #D978DF

Accessibility & contrast

On white

5.65
#AB2AB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#AB2AB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2AB3
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2AB3#FFFFFF#000000##FFFFFF
##AB2AB31.005.653.715.65
#FFFFFF5.651.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB7
Deuteranopia (green-blind)
#496CB0
Tritanopia (blue-blind)
#AF436E
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #ab2ab3;
/* rgb */ color: rgb(171, 42, 179);
/* oklch */ color: oklch(54.3% 0.221 325.5);
Tailwind
colors: {
  custom: {
    50: '#c873ca',
    500: '#ab2ab3',
    950: '#000000',
  },
}
SCSS
$custom: #ab2ab3;
$custom-light: #c873ca;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2ab3",
  "rgb": {
    "r": 171,
    "g": 42,
    "b": 179
  },
  "hsl": {
    "h": 296.496,
    "s": 61.991,
    "l": 43.333
  },
  "oklch": {
    "l": 0.54309,
    "c": 0.22089,
    "h": 325.5
  },
  "luminance": 0.13569
}

Semantic roles & 50–950 ramp

primary
#AB2AB3
secondary
#77C772
accent
#E5434C
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AB2AB3

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

Preview Lab → · Contrast checker → · Palette generator →

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