#AB4ABC#AB4ABC

#AB4ABC is a mid, vivid purple. Relative luminance 0.172; OKLCH L 58.0% C 0.190 H 321.4°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#AB4ABC
RGBrgb(171, 74, 188)
HSLhsl(291, 46%, 51%)
HSVhsv(291, 61%, 74%)
CMYKcmyk(9%, 60.6%, 0%, 26.3%)
CIE-LABlab(48.50, 55.95, -42.47)
CIE-LCHlch(48.50, 70.25, 322.80°)
OKLaboklab(57.99% 0.1482 -0.1182)
OKLCHoklch(57.99% 0.19 321.4)
XYZxyz(28.3195, 17.1877, 49.3931)
Luminance0.1719 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4ABC #5BBC4A
analogous
#724ABC #AB4ABC #BC4A94
triadic
#AB4ABC #BCAB4A #4ABCAB
tetradic
#AB4ABC #BC724A #5BBC4A #4A94BC
square
#AB4ABC #BC724A #5BBC4A #4A94BC
split-complementary
#AB4ABC #94BC4A #4ABC72
monochromatic
#5C2666 #853693 #AB4ABC #C077CD #D4A3DD

Accessibility & contrast

On white

4.73
#AB4ABC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#AB4ABC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB4ABC
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4ABC#FFFFFF#000000##FFFFFF
##AB4ABC1.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#316CC0
Deuteranopia (green-blind)
#5677B9
Tritanopia (blue-blind)
#AD5C7C
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ab4abc;
/* rgb */ color: rgb(171, 74, 188);
/* oklch */ color: oklch(58.0% 0.190 321.4);
Tailwind
colors: {
  custom: {
    50: '#c782d1',
    500: '#ab4abc',
    950: '#000000',
  },
}
SCSS
$custom: #ab4abc;
$custom-light: #c782d1;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4abc",
  "rgb": {
    "r": 171,
    "g": 74,
    "b": 188
  },
  "hsl": {
    "h": 291.053,
    "s": 45.968,
    "l": 51.373
  },
  "oklch": {
    "l": 0.57986,
    "c": 0.18959,
    "h": 321.4
  },
  "luminance": 0.17186
}

Semantic roles & 50–950 ramp

primary
#AB4ABC
secondary
#9FCA98
accent
#D65266
background
#FCF8FC
surface
#F8EFF9
border
#D1CAD2
text
#130B14
muted
#827C82

Preview Lab

Preview with #AB4ABC

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

Preview Lab → · Contrast checker → · Palette generator →

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