#AB4AA8#AB4AA8

#AB4AA8 is a mid, vivid purple. Relative luminance 0.164; OKLCH L 56.9% C 0.171 H 328.7°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#AB4AA8
RGBrgb(171, 74, 168)
HSLhsl(302, 40%, 48%)
HSVhsv(302, 57%, 67%)
CMYKcmyk(0%, 56.7%, 1.8%, 32.9%)
CIE-LABlab(47.47, 52.27, -32.37)
CIE-LCHlch(47.47, 61.48, 328.23°)
OKLaboklab(56.91% 0.1466 -0.089)
OKLCHoklch(56.91% 0.171 328.7)
XYZxyz(26.3109, 16.3843, 38.8149)
Luminance0.1638 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4AA8 #4AAB4D
analogous
#7D4AAB #AB4AA8 #AB4A77
triadic
#AB4AA8 #A8AB4A #4AA8AB
tetradic
#AB4AA8 #AB7D4A #4AAB4D #4A77AB
square
#AB4AA8 #AB7D4A #4AAB4D #4A77AB
split-complementary
#AB4AA8 #77AB4A #4AAB7D
monochromatic
#562554 #80387E #AB4AA8 #C171BF #D49BD2

Accessibility & contrast

On white

4.91
#AB4AA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#AB4AA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB4AA8
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4AA8#FFFFFF#000000##FFFFFF
##AB4AA81.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4268AB
Deuteranopia (green-blind)
#6175A5
Tritanopia (blue-blind)
#B05472
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ab4aa8;
/* rgb */ color: rgb(171, 74, 168);
/* oklch */ color: oklch(56.9% 0.171 328.7);
Tailwind
colors: {
  custom: {
    50: '#c782c2',
    500: '#ab4aa8',
    950: '#000000',
  },
}
SCSS
$custom: #ab4aa8;
$custom-light: #c782c2;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4aa8",
  "rgb": {
    "r": 171,
    "g": 74,
    "b": 168
  },
  "hsl": {
    "h": 301.856,
    "s": 39.592,
    "l": 48.039
  },
  "oklch": {
    "l": 0.5691,
    "c": 0.17145,
    "h": 328.7
  },
  "luminance": 0.16383
}

Semantic roles & 50–950 ramp

primary
#AB4AA8
secondary
#90C092
accent
#CF5C58
background
#FCF8FB
surface
#F8EFF7
border
#D1CAD0
text
#130B12
muted
#827C81

Preview Lab

Preview with #AB4AA8

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

Preview Lab → · Contrast checker → · Palette generator →

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