#AB54BD#AB54BD

#AB54BD is a mid, vivid purple. Relative luminance 0.187; OKLCH L 59.3% C 0.176 H 320.5°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#AB54BD
RGBrgb(171, 84, 189)
HSLhsl(290, 44%, 54%)
HSVhsv(290, 56%, 74%)
CMYKcmyk(9.5%, 55.6%, 0%, 25.9%)
CIE-LABlab(50.30, 51.39, -40.19)
CIE-LCHlch(50.30, 65.24, 321.97°)
OKLaboklab(59.32% 0.1354 -0.1116)
OKLCHoklch(59.32% 0.176 320.5)
XYZxyz(29.1491, 18.6740, 50.2033)
Luminance0.1867 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB54BD #66BD54
analogous
#7654BD #AB54BD #BD549A
triadic
#AB54BD #BDAB54 #54BDAB
tetradic
#AB54BD #BD7654 #66BD54 #549ABD
square
#AB54BD #BD7654 #66BD54 #549ABD
split-complementary
#AB54BD #9ABD54 #54BD76
monochromatic
#612A6D #893B99 #AB54BD #C180CE #D6ACDF

Accessibility & contrast

On white

4.44
#AB54BD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#AB54BD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB54BD
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB54BD#FFFFFF#000000##000000
##AB54BD1.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4072C0
Deuteranopia (green-blind)
#5D7BBA
Tritanopia (blue-blind)
#AC6381
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ab54bd;
/* rgb */ color: rgb(171, 84, 189);
/* oklch */ color: oklch(59.3% 0.176 320.5);
Tailwind
colors: {
  custom: {
    50: '#c688d1',
    500: '#ab54bd',
    950: '#000000',
  },
}
SCSS
$custom: #ab54bd;
$custom-light: #c688d1;
$custom-dark: #000000;
JSON
{
  "hex": "#ab54bd",
  "rgb": {
    "r": 171,
    "g": 84,
    "b": 189
  },
  "hsl": {
    "h": 289.714,
    "s": 44.304,
    "l": 53.529
  },
  "oklch": {
    "l": 0.59323,
    "c": 0.17552,
    "h": 320.5
  },
  "luminance": 0.18673
}

Semantic roles & 50–950 ramp

primary
#AB54BD
secondary
#A8CDA0
accent
#D4546A
background
#FCF8FC
surface
#F8F0F9
border
#D1CBD2
text
#130C14
muted
#827D82

Preview Lab

Preview with #AB54BD

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

Preview Lab → · Contrast checker → · Palette generator →

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