#AB51CA#AB51CA

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

Color values

HEX#AB51CA
RGBrgb(171, 81, 202)
HSLhsl(285, 53%, 55%)
HSVhsv(285, 60%, 79%)
CMYKcmyk(15.3%, 59.9%, 0%, 20.8%)
CIE-LABlab(50.46, 55.45, -47.44)
CIE-LCHlch(50.46, 72.97, 319.45°)
OKLaboklab(59.67% 0.14 -0.1327)
OKLCHoklch(59.67% 0.193 316.5)
XYZxyz(30.3961, 18.8082, 57.8948)
Luminance0.1881 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB51CA #70CA51
analogous
#6E51CA #AB51CA #CA51AC
triadic
#AB51CA #CAAB51 #51CAAB
tetradic
#AB51CA #CA6E51 #70CA51 #51ACCA
square
#AB51CA #CA6E51 #70CA51 #51ACCA
split-complementary
#AB51CA #ACCA51 #51CA6E
monochromatic
#65257B #8C34AA #AB51CA #C280D8 #D8AFE7

Accessibility & contrast

On white

4.41
#AB51CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#AB51CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB51CA
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB51CA#FFFFFF#000000##000000
##AB51CA1.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#2E73CE
Deuteranopia (green-blind)
#537BC7
Tritanopia (blue-blind)
#AA6686
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ab51ca;
/* rgb */ color: rgb(171, 81, 202);
/* oklch */ color: oklch(59.7% 0.193 316.5);
Tailwind
colors: {
  custom: {
    50: '#c787db',
    500: '#ab51ca',
    950: '#000000',
  },
}
SCSS
$custom: #ab51ca;
$custom-light: #c787db;
$custom-dark: #000000;
JSON
{
  "hex": "#ab51ca",
  "rgb": {
    "r": 171,
    "g": 81,
    "b": 202
  },
  "hsl": {
    "h": 284.628,
    "s": 53.304,
    "l": 55.49
  },
  "oklch": {
    "l": 0.59665,
    "c": 0.1929,
    "h": 316.5
  },
  "luminance": 0.18807
}

Semantic roles & 50–950 ramp

primary
#AB51CA
secondary
#AFD5A2
accent
#DD4B70
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #AB51CA

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

Preview Lab → · Contrast checker → · Palette generator →

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