#AB54D5#AB54D5

#AB54D5 is a mid, vivid purple. Relative luminance 0.198; OKLCH L 60.7% C 0.200 H 313.1°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#AB54D5
RGBrgb(171, 84, 213)
HSLhsl(280, 61%, 58%)
HSVhsv(280, 61%, 84%)
CMYKcmyk(19.7%, 60.6%, 0%, 16.5%)
CIE-LABlab(51.61, 56.30, -51.89)
CIE-LCHlch(51.61, 76.56, 317.33°)
OKLaboklab(60.7% 0.1364 -0.1457)
OKLCHoklch(60.7% 0.2 313.1)
XYZxyz(31.9731, 19.8036, 65.0761)
Luminance0.1980 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB54D5 #7ED554
analogous
#6A54D5 #AB54D5 #D554BE
triadic
#AB54D5 #D5AB54 #54D5AB
tetradic
#AB54D5 #D56A54 #7ED554 #54BED5
square
#AB54D5 #D56A54 #7ED554 #54BED5
split-complementary
#AB54D5 #BED554 #54D56A
monochromatic
#6A228C #8F2EBD #AB54D5 #C385E1 #DBB6ED

Accessibility & contrast

On white

4.23
#AB54D5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#AB54D5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB54D5
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB54D5#FFFFFF#000000##000000
##AB54D51.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#2676D9
Deuteranopia (green-blind)
#4D7DD2
Tritanopia (blue-blind)
#A76C8D
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ab54d5;
/* rgb */ color: rgb(171, 84, 213);
/* oklch */ color: oklch(60.7% 0.200 313.1);
Tailwind
colors: {
  custom: {
    50: '#c789e2',
    500: '#ab54d5',
    950: '#000000',
  },
}
SCSS
$custom: #ab54d5;
$custom-light: #c789e2;
$custom-dark: #000000;
JSON
{
  "hex": "#ab54d5",
  "rgb": {
    "r": 171,
    "g": 84,
    "b": 213
  },
  "hsl": {
    "h": 280.465,
    "s": 60.563,
    "l": 58.235
  },
  "oklch": {
    "l": 0.60704,
    "c": 0.19964,
    "h": 313.1
  },
  "luminance": 0.19803
}

Semantic roles & 50–950 ramp

primary
#AB54D5
secondary
#B9DCA9
accent
#E44478
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #AB54D5

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

Preview Lab → · Contrast checker → · Palette generator →

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