#AB55CC#AB55CC

#AB55CC is a mid, vivid purple. Relative luminance 0.195; OKLCH L 60.3% C 0.189 H 315.6°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#AB55CC
RGBrgb(171, 85, 204)
HSLhsl(283, 54%, 57%)
HSVhsv(283, 58%, 80%)
CMYKcmyk(16.2%, 58.3%, 0%, 20%)
CIE-LABlab(51.29, 53.93, -47.28)
CIE-LCHlch(51.29, 71.72, 318.76°)
OKLaboklab(60.3% 0.1351 -0.1322)
OKLCHoklch(60.3% 0.189 315.6)
XYZxyz(30.9405, 19.5156, 59.2521)
Luminance0.1951 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB55CC #76CC55
analogous
#7055CC #AB55CC #CC55B2
triadic
#AB55CC #CCAB55 #55CCAB
tetradic
#AB55CC #CC7055 #76CC55 #55B2CC
square
#AB55CC #CC7055 #76CC55 #55B2CC
split-complementary
#AB55CC #B2CC55 #55CC70
monochromatic
#672680 #8D35AF #AB55CC #C284DA #DAB3E8

Accessibility & contrast

On white

4.28
#AB55CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#AB55CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB55CC
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB55CC#FFFFFF#000000##000000
##AB55CC1.004.284.904.90
#FFFFFF4.281.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3475D0
Deuteranopia (green-blind)
#557DC9
Tritanopia (blue-blind)
#A96989
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ab55cc;
/* rgb */ color: rgb(171, 85, 204);
/* oklch */ color: oklch(60.3% 0.189 315.6);
Tailwind
colors: {
  custom: {
    50: '#c789dc',
    500: '#ab55cc',
    950: '#000000',
  },
}
SCSS
$custom: #ab55cc;
$custom-light: #c789dc;
$custom-dark: #000000;
JSON
{
  "hex": "#ab55cc",
  "rgb": {
    "r": 171,
    "g": 85,
    "b": 204
  },
  "hsl": {
    "h": 283.361,
    "s": 53.846,
    "l": 56.667
  },
  "oklch": {
    "l": 0.603,
    "c": 0.18902,
    "h": 315.6
  },
  "luminance": 0.19515
}

Semantic roles & 50–950 ramp

primary
#AB55CC
secondary
#B4D7A6
accent
#DD4B73
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #AB55CC

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

Preview Lab → · Contrast checker → · Palette generator →

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