#AB54BB#AB54BB

#AB54BB is a mid, vivid purple. Relative luminance 0.186; OKLCH L 59.2% C 0.174 H 321.2°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#AB54BB
RGBrgb(171, 84, 187)
HSLhsl(291, 43%, 53%)
HSVhsv(291, 55%, 73%)
CMYKcmyk(8.6%, 55.1%, 0%, 26.7%)
CIE-LABlab(50.20, 51.00, -39.20)
CIE-LCHlch(50.20, 64.32, 322.46°)
OKLaboklab(59.22% 0.1353 -0.1087)
OKLCHoklch(59.22% 0.174 321.2)
XYZxyz(28.9335, 18.5877, 49.0678)
Luminance0.1859 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB54BB #64BB54
analogous
#7854BB #AB54BB #BB5497
triadic
#AB54BB #BBAB54 #54BBAB
tetradic
#AB54BB #BB7854 #64BB54 #5497BB
square
#AB54BB #BB7854 #64BB54 #5497BB
split-complementary
#AB54BB #97BB54 #54BB78
monochromatic
#602A6A #883C96 #AB54BB #C180CC #D6ACDE

Accessibility & contrast

On white

4.45
#AB54BB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#AB54BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB54BB
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB54BB#FFFFFF#000000##000000
##AB54BB1.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4171BE
Deuteranopia (green-blind)
#5E7BB8
Tritanopia (blue-blind)
#AD6380
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #ab54bb;
/* rgb */ color: rgb(171, 84, 187);
/* oklch */ color: oklch(59.2% 0.174 321.2);
Tailwind
colors: {
  custom: {
    50: '#c688d0',
    500: '#ab54bb',
    950: '#000000',
  },
}
SCSS
$custom: #ab54bb;
$custom-light: #c688d0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab54bb",
  "rgb": {
    "r": 171,
    "g": 84,
    "b": 187
  },
  "hsl": {
    "h": 290.68,
    "s": 43.096,
    "l": 53.137
  },
  "oklch": {
    "l": 0.59215,
    "c": 0.17356,
    "h": 321.2
  },
  "luminance": 0.18586
}

Semantic roles & 50–950 ramp

primary
#AB54BB
secondary
#A6CC9F
accent
#D35568
background
#FCF8FC
surface
#F8F0F9
border
#D1CBD2
text
#130C14
muted
#827D82

Preview Lab

Preview with #AB54BB

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

Preview Lab → · Contrast checker → · Palette generator →

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