#AB54CC#AB54CC

#AB54CC is a mid, vivid purple. Relative luminance 0.194; OKLCH L 60.2% C 0.191 H 315.7°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#AB54CC
RGBrgb(171, 84, 204)
HSLhsl(284, 54%, 56%)
HSVhsv(284, 59%, 80%)
CMYKcmyk(16.2%, 58.8%, 0%, 20%)
CIE-LABlab(51.10, 54.42, -47.56)
CIE-LCHlch(51.10, 72.27, 318.85°)
OKLaboklab(60.17% 0.1363 -0.1331)
OKLCHoklch(60.17% 0.191 315.7)
XYZxyz(30.8623, 19.3592, 59.2260)
Luminance0.1936 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB54CC #75CC54
analogous
#6F54CC #AB54CC #CC54B1
triadic
#AB54CC #CCAB54 #54CCAB
tetradic
#AB54CC #CC6F54 #75CC54 #54B1CC
square
#AB54CC #CC6F54 #75CC54 #54B1CC
split-complementary
#AB54CC #B1CC54 #54CC6F
monochromatic
#672680 #8D34AF #AB54CC #C283DA #D9B2E8

Accessibility & contrast

On white

4.31
#AB54CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#AB54CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB54CC
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB54CC#FFFFFF#000000##000000
##AB54CC1.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3274D0
Deuteranopia (green-blind)
#547CC9
Tritanopia (blue-blind)
#A96888
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ab54cc;
/* rgb */ color: rgb(171, 84, 204);
/* oklch */ color: oklch(60.2% 0.191 315.7);
Tailwind
colors: {
  custom: {
    50: '#c788dc',
    500: '#ab54cc',
    950: '#000000',
  },
}
SCSS
$custom: #ab54cc;
$custom-light: #c788dc;
$custom-dark: #000000;
JSON
{
  "hex": "#ab54cc",
  "rgb": {
    "r": 171,
    "g": 84,
    "b": 204
  },
  "hsl": {
    "h": 283.5,
    "s": 54.054,
    "l": 56.471
  },
  "oklch": {
    "l": 0.60169,
    "c": 0.1905,
    "h": 315.7
  },
  "luminance": 0.19358
}

Semantic roles & 50–950 ramp

primary
#AB54CC
secondary
#B3D7A5
accent
#DD4A73
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #AB54CC

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

Preview Lab → · Contrast checker → · Palette generator →

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