#AB54D1#AB54D1

#AB54D1 is a mid, vivid purple. Relative luminance 0.196; OKLCH L 60.5% C 0.196 H 314.2°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#AB54D1
RGBrgb(171, 84, 209)
HSLhsl(282, 58%, 57%)
HSVhsv(282, 60%, 82%)
CMYKcmyk(18.2%, 59.8%, 0%, 18%)
CIE-LABlab(51.39, 55.46, -49.98)
CIE-LCHlch(51.39, 74.65, 317.98°)
OKLaboklab(60.46% 0.1364 -0.1401)
OKLCHoklch(60.46% 0.196 314.2)
XYZxyz(31.4716, 19.6030, 62.4352)
Luminance0.1960 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB54D1 #7AD154
analogous
#6C54D1 #AB54D1 #D154B9
triadic
#AB54D1 #D1AB54 #54D1AB
tetradic
#AB54D1 #D16C54 #7AD154 #54B9D1
square
#AB54D1 #D16C54 #7AD154 #54B9D1
split-complementary
#AB54D1 #B9D154 #54D16C
monochromatic
#692486 #8E31B7 #AB54D1 #C384DE #DAB4EB

Accessibility & contrast

On white

4.27
#AB54D1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#AB54D1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB54D1
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB54D1#FFFFFF#000000##000000
##AB54D11.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#2C76D5
Deuteranopia (green-blind)
#507DCE
Tritanopia (blue-blind)
#A86A8B
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ab54d1;
/* rgb */ color: rgb(171, 84, 209);
/* oklch */ color: oklch(60.5% 0.196 314.2);
Tailwind
colors: {
  custom: {
    50: '#c789e0',
    500: '#ab54d1',
    950: '#000000',
  },
}
SCSS
$custom: #ab54d1;
$custom-light: #c789e0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab54d1",
  "rgb": {
    "r": 171,
    "g": 84,
    "b": 209
  },
  "hsl": {
    "h": 281.76,
    "s": 57.604,
    "l": 57.451
  },
  "oklch": {
    "l": 0.60464,
    "c": 0.19557,
    "h": 314.2
  },
  "luminance": 0.19602
}

Semantic roles & 50–950 ramp

primary
#AB54D1
secondary
#B7DAA7
accent
#E14776
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #AB54D1

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

Preview Lab → · Contrast checker → · Palette generator →

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