#AB54CB#AB54CB

#AB54CB is a mid, vivid purple. Relative luminance 0.193; OKLCH L 60.1% C 0.189 H 316.0°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#AB54CB
RGBrgb(171, 84, 203)
HSLhsl(284, 53%, 56%)
HSVhsv(284, 59%, 80%)
CMYKcmyk(15.8%, 58.6%, 0%, 20.4%)
CIE-LABlab(51.05, 54.21, -47.08)
CIE-LCHlch(51.05, 71.80, 319.03°)
OKLaboklab(60.11% 0.1363 -0.1317)
OKLCHoklch(60.11% 0.189 316)
XYZxyz(30.7428, 19.3114, 58.5964)
Luminance0.1931 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB54CB #74CB54
analogous
#7054CB #AB54CB #CB54AF
triadic
#AB54CB #CBAB54 #54CBAB
tetradic
#AB54CB #CB7054 #74CB54 #54AFCB
square
#AB54CB #CB7054 #74CB54 #54AFCB
split-complementary
#AB54CB #AFCB54 #54CB70
monochromatic
#67267E #8D35AD #AB54CB #C283D9 #D9B2E8

Accessibility & contrast

On white

4.32
#AB54CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#AB54CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB54CB
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB54CB#FFFFFF#000000##000000
##AB54CB1.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3374CF
Deuteranopia (green-blind)
#557CC8
Tritanopia (blue-blind)
#A96888
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ab54cb;
/* rgb */ color: rgb(171, 84, 203);
/* oklch */ color: oklch(60.1% 0.189 316.0);
Tailwind
colors: {
  custom: {
    50: '#c788db',
    500: '#ab54cb',
    950: '#000000',
  },
}
SCSS
$custom: #ab54cb;
$custom-light: #c788db;
$custom-dark: #000000;
JSON
{
  "hex": "#ab54cb",
  "rgb": {
    "r": 171,
    "g": 84,
    "b": 203
  },
  "hsl": {
    "h": 283.866,
    "s": 53.363,
    "l": 56.275
  },
  "oklch": {
    "l": 0.60111,
    "c": 0.18949,
    "h": 316
  },
  "luminance": 0.1931
}

Semantic roles & 50–950 ramp

primary
#AB54CB
secondary
#B2D6A5
accent
#DD4B72
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #AB54CB

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

Preview Lab → · Contrast checker → · Palette generator →

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