#AB54C1#AB54C1

#AB54C1 is a mid, vivid purple. Relative luminance 0.188; OKLCH L 59.5% C 0.179 H 319.2°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#AB54C1
RGBrgb(171, 84, 193)
HSLhsl(288, 47%, 54%)
HSVhsv(288, 56%, 76%)
CMYKcmyk(11.4%, 56.5%, 0%, 24.3%)
CIE-LABlab(50.51, 52.19, -42.18)
CIE-LCHlch(50.51, 67.10, 321.05°)
OKLaboklab(59.54% 0.1358 -0.1174)
OKLCHoklch(59.54% 0.179 319.2)
XYZxyz(29.5893, 18.8500, 52.5215)
Luminance0.1885 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB54C1 #6AC154
analogous
#7554C1 #AB54C1 #C154A1
triadic
#AB54C1 #C1AB54 #54C1AB
tetradic
#AB54C1 #C17554 #6AC154 #54A1C1
square
#AB54C1 #C17554 #6AC154 #54A1C1
split-complementary
#AB54C1 #A1C154 #54C175
monochromatic
#632971 #8A399E #AB54C1 #C181D1 #D7AEE2

Accessibility & contrast

On white

4.40
#AB54C1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#AB54C1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB54C1
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB54C1#FFFFFF#000000##000000
##AB54C11.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D72C4
Deuteranopia (green-blind)
#5B7BBE
Tritanopia (blue-blind)
#AB6583
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ab54c1;
/* rgb */ color: rgb(171, 84, 193);
/* oklch */ color: oklch(59.5% 0.179 319.2);
Tailwind
colors: {
  custom: {
    50: '#c788d4',
    500: '#ab54c1',
    950: '#000000',
  },
}
SCSS
$custom: #ab54c1;
$custom-light: #c788d4;
$custom-dark: #000000;
JSON
{
  "hex": "#ab54c1",
  "rgb": {
    "r": 171,
    "g": 84,
    "b": 193
  },
  "hsl": {
    "h": 287.89,
    "s": 46.781,
    "l": 54.314
  },
  "oklch": {
    "l": 0.59543,
    "c": 0.17947,
    "h": 319.2
  },
  "luminance": 0.18849
}

Semantic roles & 50–950 ramp

primary
#AB54C1
secondary
#ABD0A1
accent
#D6516C
background
#FCF8FD
surface
#F8F0FA
border
#D1CBD3
text
#130C14
muted
#827D83

Preview Lab

Preview with #AB54C1

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

Preview Lab → · Contrast checker → · Palette generator →

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