#AB54D6#AB54D6

#AB54D6 is a mid, highly saturated purple. Relative luminance 0.199; OKLCH L 60.8% C 0.201 H 312.8°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#AB54D6
RGBrgb(171, 84, 214)
HSLhsl(280, 61%, 58%)
HSVhsv(280, 61%, 84%)
CMYKcmyk(20.1%, 60.7%, 0%, 16.1%)
CIE-LABlab(51.67, 56.51, -52.37)
CIE-LCHlch(51.67, 77.04, 317.18°)
OKLaboklab(60.77% 0.1364 -0.1471)
OKLCHoklch(60.77% 0.201 312.8)
XYZxyz(32.1004, 19.8545, 65.7466)
Luminance0.1985 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB54D6 #7FD654
analogous
#6A54D6 #AB54D6 #D654C0
triadic
#AB54D6 #D6AB54 #54D6AB
tetradic
#AB54D6 #D66A54 #7FD654 #54C0D6
square
#AB54D6 #D66A54 #7FD654 #54C0D6
split-complementary
#AB54D6 #C0D654 #54D66A
monochromatic
#6A228E #8F2EBF #AB54D6 #C385E2 #DBB7EE

Accessibility & contrast

On white

4.22
#AB54D6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#AB54D6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB54D6
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB54D6#FFFFFF#000000##000000
##AB54D61.004.224.974.97
#FFFFFF4.221.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2477DA
Deuteranopia (green-blind)
#4C7DD3
Tritanopia (blue-blind)
#A76C8D
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ab54d6;
/* rgb */ color: rgb(171, 84, 214);
/* oklch */ color: oklch(60.8% 0.201 312.8);
Tailwind
colors: {
  custom: {
    50: '#c789e3',
    500: '#ab54d6',
    950: '#000000',
  },
}
SCSS
$custom: #ab54d6;
$custom-light: #c789e3;
$custom-dark: #000000;
JSON
{
  "hex": "#ab54d6",
  "rgb": {
    "r": 171,
    "g": 84,
    "b": 214
  },
  "hsl": {
    "h": 280.154,
    "s": 61.321,
    "l": 58.431
  },
  "oklch": {
    "l": 0.60765,
    "c": 0.20065,
    "h": 312.8
  },
  "luminance": 0.19854
}

Semantic roles & 50–950 ramp

primary
#AB54D6
secondary
#BADDA9
accent
#E44379
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#130C15
muted
#827D84

Preview Lab

Preview with #AB54D6

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

Preview Lab → · Contrast checker → · Palette generator →

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