#AB54CA#AB54CA

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

Color values

HEX#AB54CA
RGBrgb(171, 84, 202)
HSLhsl(284, 53%, 56%)
HSVhsv(284, 58%, 79%)
CMYKcmyk(15.3%, 58.4%, 0%, 20.8%)
CIE-LABlab(50.99, 54.01, -46.59)
CIE-LCHlch(50.99, 71.33, 319.22°)
OKLaboklab(60.05% 0.1362 -0.1302)
OKLCHoklch(60.05% 0.188 316.3)
XYZxyz(30.6240, 19.2639, 57.9708)
Luminance0.1926 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB54CA #73CA54
analogous
#7054CA #AB54CA #CA54AE
triadic
#AB54CA #CAAB54 #54CAAB
tetradic
#AB54CA #CA7054 #73CA54 #54AECA
square
#AB54CA #CA7054 #73CA54 #54AECA
split-complementary
#AB54CA #AECA54 #54CA70
monochromatic
#66277D #8C35AC #AB54CA #C283D8 #D9B1E7

Accessibility & contrast

On white

4.33
#AB54CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#AB54CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB54CA
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB54CA#FFFFFF#000000##000000
##AB54CA1.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3474CE
Deuteranopia (green-blind)
#557CC7
Tritanopia (blue-blind)
#A96887
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #ab54ca;
/* rgb */ color: rgb(171, 84, 202);
/* oklch */ color: oklch(60.1% 0.188 316.3);
Tailwind
colors: {
  custom: {
    50: '#c788db',
    500: '#ab54ca',
    950: '#000000',
  },
}
SCSS
$custom: #ab54ca;
$custom-light: #c788db;
$custom-dark: #000000;
JSON
{
  "hex": "#ab54ca",
  "rgb": {
    "r": 171,
    "g": 84,
    "b": 202
  },
  "hsl": {
    "h": 284.237,
    "s": 52.679,
    "l": 56.078
  },
  "oklch": {
    "l": 0.60053,
    "c": 0.18848,
    "h": 316.3
  },
  "luminance": 0.19263
}

Semantic roles & 50–950 ramp

primary
#AB54CA
secondary
#B1D5A5
accent
#DC4C72
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #AB54CA

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

Preview Lab → · Contrast checker → · Palette generator →

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