#AB51BC#AB51BC

#AB51BC is a mid, vivid purple. Relative luminance 0.182; OKLCH L 58.9% C 0.179 H 321.0°. Best body text is #000000 at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#AB51BC
RGBrgb(171, 81, 188)
HSLhsl(290, 44%, 53%)
HSVhsv(290, 57%, 74%)
CMYKcmyk(9%, 56.9%, 0%, 26.3%)
CIE-LABlab(49.71, 52.66, -40.55)
CIE-LCHlch(49.71, 66.47, 322.40°)
OKLaboklab(58.87% 0.1393 -0.1127)
OKLCHoklch(58.87% 0.179 321)
XYZxyz(28.8131, 18.1749, 49.5576)
Luminance0.1817 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB51BC #62BC51
analogous
#7551BC #AB51BC #BC5198
triadic
#AB51BC #BCAB51 #51BCAB
tetradic
#AB51BC #BC7551 #62BC51 #5198BC
square
#AB51BC #BC7551 #62BC51 #5198BC
split-complementary
#AB51BC #98BC51 #51BC75
monochromatic
#60296A #873A96 #AB51BC #C07DCD #D6A9DE

Accessibility & contrast

On white

4.53
#AB51BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.63
#AB51BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB51BC
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB51BC#FFFFFF#000000##000000
##AB51BC1.004.534.634.63
#FFFFFF4.531.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C70BF
Deuteranopia (green-blind)
#5B7AB9
Tritanopia (blue-blind)
#AC617F
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #ab51bc;
/* rgb */ color: rgb(171, 81, 188);
/* oklch */ color: oklch(58.9% 0.179 321.0);
Tailwind
colors: {
  custom: {
    50: '#c786d0',
    500: '#ab51bc',
    950: '#000000',
  },
}
SCSS
$custom: #ab51bc;
$custom-light: #c786d0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab51bc",
  "rgb": {
    "r": 171,
    "g": 81,
    "b": 188
  },
  "hsl": {
    "h": 290.467,
    "s": 44.398,
    "l": 52.745
  },
  "oklch": {
    "l": 0.5887,
    "c": 0.17917,
    "h": 321
  },
  "luminance": 0.18174
}

Semantic roles & 50–950 ramp

primary
#AB51BC
secondary
#A5CC9D
accent
#D45468
background
#FCF8FC
surface
#F8F0F9
border
#D1CBD2
text
#130B14
muted
#827C82

Preview Lab

Preview with #AB51BC

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

Preview Lab → · Contrast checker → · Palette generator →

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