#AB3AA2#AB3AA2

#AB3AA2 is a mid, vivid purple. Relative luminance 0.143; OKLCH L 54.8% C 0.189 H 331.2°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#AB3AA2
RGBrgb(171, 58, 162)
HSLhsl(305, 49%, 45%)
HSVhsv(305, 66%, 67%)
CMYKcmyk(0%, 66.1%, 5.3%, 32.9%)
CIE-LABlab(44.65, 58.20, -33.24)
CIE-LCHlch(44.65, 67.02, 330.26°)
OKLaboklab(54.76% 0.1659 -0.0913)
OKLCHoklch(54.76% 0.189 331.2)
XYZxyz(24.8292, 14.2945, 35.6268)
Luminance0.1429 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB3AA2 #3AAB43
analogous
#7C3AAB #AB3AA2 #AB3A69
triadic
#AB3AA2 #A2AB3A #3AA2AB
tetradic
#AB3AA2 #AB7C3A #3AAB43 #3A69AB
square
#AB3AA2 #AB7C3A #3AAB43 #3A69AB
split-complementary
#AB3AA2 #69AB3A #3AAB7C
monochromatic
#501B4B #7D2A77 #AB3AA2 #C75BBF #D789D1

Accessibility & contrast

On white

5.44
#AB3AA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#AB3AA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB3AA2
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB3AA2#FFFFFF#000000##FFFFFF
##AB3AA21.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3360A5
Deuteranopia (green-blind)
#5B6F9F
Tritanopia (blue-blind)
#B24669
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #ab3aa2;
/* rgb */ color: rgb(171, 58, 162);
/* oklch */ color: oklch(54.8% 0.189 331.2);
Tailwind
colors: {
  custom: {
    50: '#c779be',
    500: '#ab3aa2',
    950: '#000000',
  },
}
SCSS
$custom: #ab3aa2;
$custom-light: #c779be;
$custom-dark: #000000;
JSON
{
  "hex": "#ab3aa2",
  "rgb": {
    "r": 171,
    "g": 58,
    "b": 162
  },
  "hsl": {
    "h": 304.779,
    "s": 49.345,
    "l": 44.902
  },
  "oklch": {
    "l": 0.54757,
    "c": 0.18933,
    "h": 331.2
  },
  "luminance": 0.14293
}

Semantic roles & 50–950 ramp

primary
#AB3AA2
secondary
#80C185
accent
#D95A4F
background
#FCF7FB
surface
#F9EEF7
border
#D2C9D0
text
#130A12
muted
#827C81

Preview Lab

Preview with #AB3AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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