#AB54C8#AB54C8

#AB54C8 is a mid, vivid purple. Relative luminance 0.192; OKLCH L 59.9% C 0.186 H 316.9°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#AB54C8
RGBrgb(171, 84, 200)
HSLhsl(285, 51%, 56%)
HSVhsv(285, 58%, 78%)
CMYKcmyk(14.5%, 58%, 0%, 21.6%)
CIE-LABlab(50.89, 53.60, -45.62)
CIE-LCHlch(50.89, 70.38, 319.60°)
OKLaboklab(59.94% 0.1362 -0.1274)
OKLCHoklch(59.94% 0.186 316.9)
XYZxyz(30.3887, 19.1698, 56.7318)
Luminance0.1917 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB54C8 #71C854
analogous
#7154C8 #AB54C8 #C854AB
triadic
#AB54C8 #C8AB54 #54C8AB
tetradic
#AB54C8 #C87154 #71C854 #54ABC8
square
#AB54C8 #C87154 #71C854 #54ABC8
split-complementary
#AB54C8 #ABC854 #54C871
monochromatic
#66277A #8C36A9 #AB54C8 #C282D7 #D8B1E6

Accessibility & contrast

On white

4.34
#AB54C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#AB54C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB54C8
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB54C8#FFFFFF#000000##000000
##AB54C81.004.344.834.83
#FFFFFF4.341.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3674CC
Deuteranopia (green-blind)
#577CC5
Tritanopia (blue-blind)
#AA6786
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #ab54c8;
/* rgb */ color: rgb(171, 84, 200);
/* oklch */ color: oklch(59.9% 0.186 316.9);
Tailwind
colors: {
  custom: {
    50: '#c788d9',
    500: '#ab54c8',
    950: '#000000',
  },
}
SCSS
$custom: #ab54c8;
$custom-light: #c788d9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab54c8",
  "rgb": {
    "r": 171,
    "g": 84,
    "b": 200
  },
  "hsl": {
    "h": 285,
    "s": 51.327,
    "l": 55.686
  },
  "oklch": {
    "l": 0.59938,
    "c": 0.18647,
    "h": 316.9
  },
  "luminance": 0.19169
}

Semantic roles & 50–950 ramp

primary
#AB54C8
secondary
#B0D4A4
accent
#DB4D70
background
#FCF8FD
surface
#F8F0FA
border
#D1CBD3
text
#130C15
muted
#827D83

Preview Lab

Preview with #AB54C8

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

Preview Lab → · Contrast checker → · Palette generator →

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