#AB54D4#AB54D4

#AB54D4 is a mid, vivid purple. Relative luminance 0.198; OKLCH L 60.6% C 0.199 H 313.4°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#AB54D4
RGBrgb(171, 84, 212)
HSLhsl(281, 60%, 58%)
HSVhsv(281, 60%, 83%)
CMYKcmyk(19.3%, 60.4%, 0%, 16.9%)
CIE-LABlab(51.56, 56.09, -51.41)
CIE-LCHlch(51.56, 76.09, 317.49°)
OKLaboklab(60.64% 0.1364 -0.1443)
OKLCHoklch(60.64% 0.199 313.4)
XYZxyz(31.8465, 19.7529, 64.4097)
Luminance0.1975 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB54D4 #7DD454
analogous
#6B54D4 #AB54D4 #D454BD
triadic
#AB54D4 #D4AB54 #54D4AB
tetradic
#AB54D4 #D46B54 #7DD454 #54BDD4
square
#AB54D4 #D46B54 #7DD454 #54BDD4
split-complementary
#AB54D4 #BDD454 #54D46B
monochromatic
#69238B #8F2FBC #AB54D4 #C385E0 #DBB6ED

Accessibility & contrast

On white

4.24
#AB54D4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#AB54D4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB54D4
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB54D4#FFFFFF#000000##000000
##AB54D41.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#2776D8
Deuteranopia (green-blind)
#4E7DD1
Tritanopia (blue-blind)
#A76B8C
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ab54d4;
/* rgb */ color: rgb(171, 84, 212);
/* oklch */ color: oklch(60.6% 0.199 313.4);
Tailwind
colors: {
  custom: {
    50: '#c789e2',
    500: '#ab54d4',
    950: '#000000',
  },
}
SCSS
$custom: #ab54d4;
$custom-light: #c789e2;
$custom-dark: #000000;
JSON
{
  "hex": "#ab54d4",
  "rgb": {
    "r": 171,
    "g": 84,
    "b": 212
  },
  "hsl": {
    "h": 280.781,
    "s": 59.813,
    "l": 58.039
  },
  "oklch": {
    "l": 0.60644,
    "c": 0.19861,
    "h": 313.4
  },
  "luminance": 0.19752
}

Semantic roles & 50–950 ramp

primary
#AB54D4
secondary
#B9DBA8
accent
#E34577
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #AB54D4

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

Preview Lab → · Contrast checker → · Palette generator →

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