#AB54A7#AB54A7

#AB54A7 is a mid, vivid purple. Relative luminance 0.178; OKLCH L 58.2% C 0.155 H 329.1°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#AB54A7
RGBrgb(171, 84, 167)
HSLhsl(303, 34%, 50%)
HSVhsv(303, 51%, 67%)
CMYKcmyk(0%, 50.9%, 2.3%, 32.9%)
CIE-LABlab(49.24, 47.23, -29.02)
CIE-LCHlch(49.24, 55.43, 328.43°)
OKLaboklab(58.19% 0.1326 -0.0795)
OKLCHoklch(58.19% 0.155 329.1)
XYZxyz(26.9396, 17.7902, 38.5666)
Luminance0.1779 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB54A7 #54AB58
analogous
#8454AB #AB54A7 #AB547B
triadic
#AB54A7 #A7AB54 #54A7AB
tetradic
#AB54A7 #AB8454 #54AB58 #547BAB
square
#AB54A7 #AB8454 #54AB58 #547BAB
split-complementary
#AB54A7 #7BAB54 #54AB84
monochromatic
#592C57 #82407F #AB54A7 #BF7DBC #D3A6D1

Accessibility & contrast

On white

4.61
#AB54A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#AB54A7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AB54A7
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB54A7#FFFFFF#000000##FFFFFF
##AB54A71.004.614.564.61
#FFFFFF4.611.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E6EAA
Deuteranopia (green-blind)
#6879A4
Tritanopia (blue-blind)
#B05C76
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #ab54a7;
/* rgb */ color: rgb(171, 84, 167);
/* oklch */ color: oklch(58.2% 0.155 329.1);
Tailwind
colors: {
  custom: {
    50: '#c688c1',
    500: '#ab54a7',
    950: '#000000',
  },
}
SCSS
$custom: #ab54a7;
$custom-light: #c688c1;
$custom-dark: #000000;
JSON
{
  "hex": "#ab54a7",
  "rgb": {
    "r": 171,
    "g": 84,
    "b": 167
  },
  "hsl": {
    "h": 302.759,
    "s": 34.118,
    "l": 50
  },
  "oklch": {
    "l": 0.58194,
    "c": 0.15461,
    "h": 329.1
  },
  "luminance": 0.17789
}

Semantic roles & 50–950 ramp

primary
#AB54A7
secondary
#9AC19C
accent
#CA635E
background
#FCF8FB
surface
#F8F0F7
border
#D1CBD0
text
#130C12
muted
#827D81

Preview Lab

Preview with #AB54A7

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

Preview Lab → · Contrast checker → · Palette generator →

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