#AB2BB5#AB2BB5

#AB2BB5 is a mid, highly saturated purple. Relative luminance 0.137; OKLCH L 54.5% C 0.221 H 324.8°. Best body text is #FFFFFF at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#AB2BB5
RGBrgb(171, 43, 181)
HSLhsl(296, 62%, 44%)
HSVhsv(296, 76%, 71%)
CMYKcmyk(5.5%, 76.2%, 0%, 29%)
CIE-LABlab(43.83, 66.66, -45.80)
CIE-LCHlch(43.83, 80.88, 325.51°)
OKLaboklab(54.51% 0.181 -0.1277)
OKLCHoklch(54.51% 0.221 324.8)
XYZxyz(25.9983, 13.7236, 44.9867)
Luminance0.1372 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2BB5 #35B52B
analogous
#662BB5 #AB2BB5 #B52B7A
triadic
#AB2BB5 #B5AB2B #2BB5AB
tetradic
#AB2BB5 #B5662B #35B52B #2B7AB5
square
#AB2BB5 #B5662B #35B52B #2B7AB5
split-complementary
#AB2BB5 #7AB52B #2BB566
monochromatic
#4E1452 #7C1F84 #AB2BB5 #CA49D4 #D87BE0

Accessibility & contrast

On white

5.61
#AB2BB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#AB2BB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2BB5
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2BB5#FFFFFF#000000##FFFFFF
##AB2BB51.005.613.745.61
#FFFFFF5.611.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB9
Deuteranopia (green-blind)
#486DB2
Tritanopia (blue-blind)
#AF456F
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #ab2bb5;
/* rgb */ color: rgb(171, 43, 181);
/* oklch */ color: oklch(54.5% 0.221 324.8);
Tailwind
colors: {
  custom: {
    50: '#c873cc',
    500: '#ab2bb5',
    950: '#000000',
  },
}
SCSS
$custom: #ab2bb5;
$custom-light: #c873cc;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2bb5",
  "rgb": {
    "r": 171,
    "g": 43,
    "b": 181
  },
  "hsl": {
    "h": 295.652,
    "s": 61.607,
    "l": 43.922
  },
  "oklch": {
    "l": 0.54506,
    "c": 0.22149,
    "h": 324.8
  },
  "luminance": 0.13722
}

Semantic roles & 50–950 ramp

primary
#AB2BB5
secondary
#7AC874
accent
#E5434F
background
#FCF7FC
surface
#F9EDF9
border
#D2C8D2
text
#140913
muted
#827B82

Preview Lab

Preview with #AB2BB5

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

Preview Lab → · Contrast checker → · Palette generator →

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