#AB59CB#AB59CB

#AB59CB is a mid, vivid purple. Relative luminance 0.201; OKLCH L 60.8% C 0.182 H 315.5°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#AB59CB
RGBrgb(171, 89, 203)
HSLhsl(283, 52%, 57%)
HSVhsv(283, 56%, 80%)
CMYKcmyk(15.8%, 56.2%, 0%, 20.4%)
CIE-LABlab(51.97, 51.75, -45.62)
CIE-LCHlch(51.97, 68.98, 318.60°)
OKLaboklab(60.78% 0.1299 -0.1274)
OKLCHoklch(60.78% 0.182 315.5)
XYZxyz(31.1448, 20.1155, 58.7304)
Luminance0.2011 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB59CB #79CB59
analogous
#7259CB #AB59CB #CB59B2
triadic
#AB59CB #CBAB59 #59CBAB
tetradic
#AB59CB #CB7259 #79CB59 #59B2CB
square
#AB59CB #CB7259 #79CB59 #59B2CB
split-complementary
#AB59CB #B2CB59 #59CB72
monochromatic
#682881 #8E37B0 #AB59CB #C388DA #DAB6E8

Accessibility & contrast

On white

4.18
#AB59CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#AB59CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB59CB
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB59CB#FFFFFF#000000##000000
##AB59CB1.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C77CF
Deuteranopia (green-blind)
#597EC8
Tritanopia (blue-blind)
#A96C8A
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ab59cb;
/* rgb */ color: rgb(171, 89, 203);
/* oklch */ color: oklch(60.8% 0.182 315.5);
Tailwind
colors: {
  custom: {
    50: '#c78bdb',
    500: '#ab59cb',
    950: '#000000',
  },
}
SCSS
$custom: #ab59cb;
$custom-light: #c78bdb;
$custom-dark: #000000;
JSON
{
  "hex": "#ab59cb",
  "rgb": {
    "r": 171,
    "g": 89,
    "b": 203
  },
  "hsl": {
    "h": 283.158,
    "s": 52.294,
    "l": 57.255
  },
  "oklch": {
    "l": 0.60782,
    "c": 0.18195,
    "h": 315.5
  },
  "luminance": 0.20114
}

Semantic roles & 50–950 ramp

primary
#AB59CB
secondary
#B6D7A9
accent
#DC4C74
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #AB59CB

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

Preview Lab → · Contrast checker → · Palette generator →

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