#AB54BC#AB54BC

#AB54BC is a mid, vivid purple. Relative luminance 0.186; OKLCH L 59.3% C 0.175 H 320.9°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#AB54BC
RGBrgb(171, 84, 188)
HSLhsl(290, 44%, 53%)
HSVhsv(290, 55%, 74%)
CMYKcmyk(9%, 55.3%, 0%, 26.3%)
CIE-LABlab(50.25, 51.20, -39.69)
CIE-LCHlch(50.25, 64.78, 322.21°)
OKLaboklab(59.27% 0.1354 -0.1102)
OKLCHoklch(59.27% 0.175 320.9)
XYZxyz(29.0410, 18.6307, 49.6336)
Luminance0.1863 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB54BC #65BC54
analogous
#7754BC #AB54BC #BC5499
triadic
#AB54BC #BCAB54 #54BCAB
tetradic
#AB54BC #BC7754 #65BC54 #5499BC
square
#AB54BC #BC7754 #65BC54 #5499BC
split-complementary
#AB54BC #99BC54 #54BC77
monochromatic
#612A6B #883B97 #AB54BC #C180CD #D6ACDE

Accessibility & contrast

On white

4.44
#AB54BC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#AB54BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB54BC
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB54BC#FFFFFF#000000##000000
##AB54BC1.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4171BF
Deuteranopia (green-blind)
#5E7BB9
Tritanopia (blue-blind)
#AC6380
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ab54bc;
/* rgb */ color: rgb(171, 84, 188);
/* oklch */ color: oklch(59.3% 0.175 320.9);
Tailwind
colors: {
  custom: {
    50: '#c688d0',
    500: '#ab54bc',
    950: '#000000',
  },
}
SCSS
$custom: #ab54bc;
$custom-light: #c688d0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab54bc",
  "rgb": {
    "r": 171,
    "g": 84,
    "b": 188
  },
  "hsl": {
    "h": 290.192,
    "s": 43.697,
    "l": 53.333
  },
  "oklch": {
    "l": 0.59269,
    "c": 0.17453,
    "h": 320.9
  },
  "luminance": 0.18629
}

Semantic roles & 50–950 ramp

primary
#AB54BC
secondary
#A7CCA0
accent
#D35469
background
#FCF8FC
surface
#F8F0F9
border
#D1CBD2
text
#130C14
muted
#827D82

Preview Lab

Preview with #AB54BC

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

Preview Lab → · Contrast checker → · Palette generator →

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