#AB54AA#AB54AA

#AB54AA is a mid, vivid purple. Relative luminance 0.179; OKLCH L 58.3% C 0.157 H 327.8°. Best body text is #000000 at 4.58:1 contrast (WCAG AA passes).

Color values

HEX#AB54AA
RGBrgb(171, 84, 170)
HSLhsl(301, 34%, 50%)
HSVhsv(301, 51%, 67%)
CMYKcmyk(0%, 50.9%, 0.6%, 32.9%)
CIE-LABlab(49.38, 47.78, -30.57)
CIE-LCHlch(49.38, 56.72, 327.38°)
OKLaboklab(58.34% 0.1331 -0.0839)
OKLCHoklch(58.34% 0.157 327.8)
XYZxyz(27.2202, 17.9024, 40.0442)
Luminance0.1790 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB54AA #54AB55
analogous
#8154AB #AB54AA #AB547E
triadic
#AB54AA #AAAB54 #54AAAB
tetradic
#AB54AA #AB8154 #54AB55 #547EAB
square
#AB54AA #AB8154 #54AB55 #547EAB
split-complementary
#AB54AA #7EAB54 #54AB81
monochromatic
#592C58 #824081 #AB54AA #BF7DBE #D3A6D3

Accessibility & contrast

On white

4.58
#AB54AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#AB54AA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB54AA
4.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB54AA#FFFFFF#000000##000000
##AB54AA1.004.584.584.58
#FFFFFF4.581.0021.0021.00
#0000004.5821.001.001.00
##0000004.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C6EAD
Deuteranopia (green-blind)
#6779A7
Tritanopia (blue-blind)
#B05D77
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #ab54aa;
/* rgb */ color: rgb(171, 84, 170);
/* oklch */ color: oklch(58.3% 0.157 327.8);
Tailwind
colors: {
  custom: {
    50: '#c688c3',
    500: '#ab54aa',
    950: '#000000',
  },
}
SCSS
$custom: #ab54aa;
$custom-light: #c688c3;
$custom-dark: #000000;
JSON
{
  "hex": "#ab54aa",
  "rgb": {
    "r": 171,
    "g": 84,
    "b": 170
  },
  "hsl": {
    "h": 300.69,
    "s": 34.118,
    "l": 50
  },
  "oklch": {
    "l": 0.5834,
    "c": 0.15735,
    "h": 327.8
  },
  "luminance": 0.17901
}

Semantic roles & 50–950 ramp

primary
#AB54AA
secondary
#9AC19A
accent
#CA5F5E
background
#FCF8FC
surface
#F8F0F8
border
#D1CBD1
text
#130C12
muted
#827D81

Preview Lab

Preview with #AB54AA

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

Preview Lab → · Contrast checker → · Palette generator →

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