#AB4AA2#AB4AA2

#AB4AA2 is a mid, vivid purple. Relative luminance 0.162; OKLCH L 56.6% C 0.166 H 331.2°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#AB4AA2
RGBrgb(171, 74, 162)
HSLhsl(306, 40%, 48%)
HSVhsv(306, 57%, 67%)
CMYKcmyk(0%, 56.7%, 5.3%, 32.9%)
CIE-LABlab(47.19, 51.22, -29.27)
CIE-LCHlch(47.19, 58.99, 330.25°)
OKLaboklab(56.61% 0.1458 -0.08)
OKLCHoklch(56.61% 0.166 331.2)
XYZxyz(25.7648, 16.1659, 35.9387)
Luminance0.1616 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4AA2 #4AAB53
analogous
#834AAB #AB4AA2 #AB4A71
triadic
#AB4AA2 #A2AB4A #4AA2AB
tetradic
#AB4AA2 #AB834A #4AAB53 #4A71AB
square
#AB4AA2 #AB834A #4AAB53 #4A71AB
split-complementary
#AB4AA2 #71AB4A #4AAB83
monochromatic
#562551 #80387A #AB4AA2 #C171BA #D49BCF

Accessibility & contrast

On white

4.96
#AB4AA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#AB4AA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB4AA2
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4AA2#FFFFFF#000000##FFFFFF
##AB4AA21.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4567A5
Deuteranopia (green-blind)
#64759F
Tritanopia (blue-blind)
#B1526F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ab4aa2;
/* rgb */ color: rgb(171, 74, 162);
/* oklch */ color: oklch(56.6% 0.166 331.2);
Tailwind
colors: {
  custom: {
    50: '#c682be',
    500: '#ab4aa2',
    950: '#000000',
  },
}
SCSS
$custom: #ab4aa2;
$custom-light: #c682be;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4aa2",
  "rgb": {
    "r": 171,
    "g": 74,
    "b": 162
  },
  "hsl": {
    "h": 305.567,
    "s": 39.592,
    "l": 48.039
  },
  "oklch": {
    "l": 0.56609,
    "c": 0.16629,
    "h": 331.2
  },
  "luminance": 0.16164
}

Semantic roles & 50–950 ramp

primary
#AB4AA2
secondary
#90C095
accent
#CF6358
background
#FCF8FB
surface
#F8EFF6
border
#D1CAD0
text
#130B12
muted
#827C81

Preview Lab

Preview with #AB4AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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