#AB54D2#AB54D2

#AB54D2 is a mid, vivid purple. Relative luminance 0.197; OKLCH L 60.5% C 0.197 H 313.9°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#AB54D2
RGBrgb(171, 84, 210)
HSLhsl(281, 58%, 58%)
HSVhsv(281, 60%, 82%)
CMYKcmyk(18.6%, 60%, 0%, 17.6%)
CIE-LABlab(51.44, 55.67, -50.46)
CIE-LCHlch(51.44, 75.13, 317.81°)
OKLaboklab(60.52% 0.1364 -0.1415)
OKLCHoklch(60.52% 0.197 313.9)
XYZxyz(31.5958, 19.6527, 63.0892)
Luminance0.1965 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB54D2 #7BD254
analogous
#6C54D2 #AB54D2 #D254BA
triadic
#AB54D2 #D2AB54 #54D2AB
tetradic
#AB54D2 #D26C54 #7BD254 #54BAD2
square
#AB54D2 #D26C54 #7BD254 #54BAD2
split-complementary
#AB54D2 #BAD254 #54D26C
monochromatic
#692488 #8E31B8 #AB54D2 #C384DF #DBB5EB

Accessibility & contrast

On white

4.26
#AB54D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#AB54D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB54D2
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB54D2#FFFFFF#000000##000000
##AB54D21.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#2A76D6
Deuteranopia (green-blind)
#4F7DCF
Tritanopia (blue-blind)
#A86B8B
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ab54d2;
/* rgb */ color: rgb(171, 84, 210);
/* oklch */ color: oklch(60.5% 0.197 313.9);
Tailwind
colors: {
  custom: {
    50: '#c789e0',
    500: '#ab54d2',
    950: '#000000',
  },
}
SCSS
$custom: #ab54d2;
$custom-light: #c789e0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab54d2",
  "rgb": {
    "r": 171,
    "g": 84,
    "b": 210
  },
  "hsl": {
    "h": 281.429,
    "s": 58.333,
    "l": 57.647
  },
  "oklch": {
    "l": 0.60523,
    "c": 0.19658,
    "h": 313.9
  },
  "luminance": 0.19652
}

Semantic roles & 50–950 ramp

primary
#AB54D2
secondary
#B7DAA8
accent
#E24676
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #AB54D2

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

Preview Lab → · Contrast checker → · Palette generator →

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