#AB54BA#AB54BA

#AB54BA is a mid, vivid purple. Relative luminance 0.185; OKLCH L 59.2% C 0.173 H 321.6°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#AB54BA
RGBrgb(171, 84, 186)
HSLhsl(291, 43%, 53%)
HSVhsv(291, 55%, 73%)
CMYKcmyk(8.1%, 54.8%, 0%, 27.1%)
CIE-LABlab(50.15, 50.80, -38.69)
CIE-LCHlch(50.15, 63.86, 322.71°)
OKLaboklab(59.16% 0.1352 -0.1073)
OKLCHoklch(59.16% 0.173 321.6)
XYZxyz(28.8269, 18.5451, 48.5060)
Luminance0.1854 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB54BA #63BA54
analogous
#7854BA #AB54BA #BA5496
triadic
#AB54BA #BAAB54 #54BAAB
tetradic
#AB54BA #BA7854 #63BA54 #5496BA
square
#AB54BA #BA7854 #63BA54 #5496BA
split-complementary
#AB54BA #96BA54 #54BA78
monochromatic
#602A69 #883C95 #AB54BA #C080CC #D6ABDD

Accessibility & contrast

On white

4.46
#AB54BA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#AB54BA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB54BA
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB54BA#FFFFFF#000000##000000
##AB54BA1.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4271BD
Deuteranopia (green-blind)
#5F7BB7
Tritanopia (blue-blind)
#AD627F
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #ab54ba;
/* rgb */ color: rgb(171, 84, 186);
/* oklch */ color: oklch(59.2% 0.173 321.6);
Tailwind
colors: {
  custom: {
    50: '#c688cf',
    500: '#ab54ba',
    950: '#000000',
  },
}
SCSS
$custom: #ab54ba;
$custom-light: #c688cf;
$custom-dark: #000000;
JSON
{
  "hex": "#ab54ba",
  "rgb": {
    "r": 171,
    "g": 84,
    "b": 186
  },
  "hsl": {
    "h": 291.176,
    "s": 42.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.59161,
    "c": 0.17257,
    "h": 321.6
  },
  "luminance": 0.18544
}

Semantic roles & 50–950 ramp

primary
#AB54BA
secondary
#A5CB9F
accent
#D25668
background
#FCF8FC
surface
#F8F0F9
border
#D1CBD2
text
#130C14
muted
#827D82

Preview Lab

Preview with #AB54BA

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

Preview Lab → · Contrast checker → · Palette generator →

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