#AB4AC5#AB4AC5

#AB4AC5 is a mid, vivid purple. Relative luminance 0.176; OKLCH L 58.5% C 0.198 H 318.6°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#AB4AC5
RGBrgb(171, 74, 197)
HSLhsl(287, 51%, 53%)
HSVhsv(287, 62%, 77%)
CMYKcmyk(13.2%, 62.4%, 0%, 22.7%)
CIE-LABlab(48.99, 57.70, -46.90)
CIE-LCHlch(48.99, 74.36, 320.90°)
OKLaboklab(58.51% 0.1485 -0.1311)
OKLCHoklch(58.51% 0.198 318.6)
XYZxyz(29.3201, 17.5879, 54.6629)
Luminance0.1759 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4AC5 #64C54A
analogous
#6D4AC5 #AB4AC5 #C54AA1
triadic
#AB4AC5 #C5AB4A #4AC5AB
tetradic
#AB4AC5 #C56D4A #64C54A #4AA1C5
square
#AB4AC5 #C56D4A #64C54A #4AA1C5
split-complementary
#AB4AC5 #A1C54A #4AC56D
monochromatic
#602471 #88339F #AB4AC5 #C178D4 #D6A7E3

Accessibility & contrast

On white

4.65
#AB4AC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#AB4AC5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AB4AC5
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4AC5#FFFFFF#000000##FFFFFF
##AB4AC51.004.654.524.65
#FFFFFF4.651.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#266EC9
Deuteranopia (green-blind)
#5078C2
Tritanopia (blue-blind)
#AB5F81
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ab4ac5;
/* rgb */ color: rgb(171, 74, 197);
/* oklch */ color: oklch(58.5% 0.198 318.6);
Tailwind
colors: {
  custom: {
    50: '#c783d7',
    500: '#ab4ac5',
    950: '#000000',
  },
}
SCSS
$custom: #ab4ac5;
$custom-light: #c783d7;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4ac5",
  "rgb": {
    "r": 171,
    "g": 74,
    "b": 197
  },
  "hsl": {
    "h": 287.317,
    "s": 51.464,
    "l": 53.137
  },
  "oklch": {
    "l": 0.58507,
    "c": 0.19805,
    "h": 318.6
  },
  "luminance": 0.17587
}

Semantic roles & 50–950 ramp

primary
#AB4AC5
secondary
#A6D09B
accent
#DB4D6B
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#130B14
muted
#827C83

Preview Lab

Preview with #AB4AC5

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

Preview Lab → · Contrast checker → · Palette generator →

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