#AB54BE#AB54BE

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

Color values

HEX#AB54BE
RGBrgb(171, 84, 190)
HSLhsl(289, 45%, 54%)
HSVhsv(289, 56%, 75%)
CMYKcmyk(10%, 55.8%, 0%, 25.5%)
CIE-LABlab(50.35, 51.59, -40.69)
CIE-LCHlch(50.35, 65.70, 321.74°)
OKLaboklab(59.38% 0.1355 -0.1131)
OKLCHoklch(59.38% 0.177 320.2)
XYZxyz(29.2580, 18.7175, 50.7769)
Luminance0.1872 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB54BE #67BE54
analogous
#7654BE #AB54BE #BE549C
triadic
#AB54BE #BEAB54 #54BEAB
tetradic
#AB54BE #BE7654 #67BE54 #549CBE
square
#AB54BE #BE7654 #67BE54 #549CBE
split-complementary
#AB54BE #9CBE54 #54BE76
monochromatic
#622A6E #893B9A #AB54BE #C180CF #D7ADE0

Accessibility & contrast

On white

4.43
#AB54BE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#AB54BE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB54BE
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB54BE#FFFFFF#000000##000000
##AB54BE1.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F72C1
Deuteranopia (green-blind)
#5D7BBB
Tritanopia (blue-blind)
#AC6481
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ab54be;
/* rgb */ color: rgb(171, 84, 190);
/* oklch */ color: oklch(59.4% 0.176 320.2);
Tailwind
colors: {
  custom: {
    50: '#c688d2',
    500: '#ab54be',
    950: '#000000',
  },
}
SCSS
$custom: #ab54be;
$custom-light: #c688d2;
$custom-dark: #000000;
JSON
{
  "hex": "#ab54be",
  "rgb": {
    "r": 171,
    "g": 84,
    "b": 190
  },
  "hsl": {
    "h": 289.245,
    "s": 44.915,
    "l": 53.725
  },
  "oklch": {
    "l": 0.59378,
    "c": 0.1765,
    "h": 320.2
  },
  "luminance": 0.18716
}

Semantic roles & 50–950 ramp

primary
#AB54BE
secondary
#A8CEA0
accent
#D5536A
background
#FCF8FC
surface
#F8F0F9
border
#D1CBD2
text
#130C14
muted
#827D82

Preview Lab

Preview with #AB54BE

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

Preview Lab → · Contrast checker → · Palette generator →

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