#AB51BF#AB51BF

#AB51BF is a mid, vivid purple. Relative luminance 0.183; OKLCH L 59.0% C 0.182 H 320.0°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#AB51BF
RGBrgb(171, 81, 191)
HSLhsl(289, 46%, 53%)
HSVhsv(289, 58%, 75%)
CMYKcmyk(10.5%, 57.6%, 0%, 25.1%)
CIE-LABlab(49.86, 53.25, -42.04)
CIE-LCHlch(49.86, 67.85, 321.71°)
OKLaboklab(59.04% 0.1395 -0.117)
OKLCHoklch(59.04% 0.182 320)
XYZxyz(29.1398, 18.3056, 51.2785)
Luminance0.1830 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB51BF #65BF51
analogous
#7451BF #AB51BF #BF519C
triadic
#AB51BF #BFAB51 #51BFAB
tetradic
#AB51BF #BF7451 #65BF51 #519CBF
square
#AB51BF #BF7451 #65BF51 #519CBF
split-complementary
#AB51BF #9CBF51 #51BF74
monochromatic
#61286D #88399A #AB51BF #C17ECF #D6AAE0

Accessibility & contrast

On white

4.51
#AB51BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#AB51BF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB51BF
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB51BF#FFFFFF#000000##000000
##AB51BF1.004.514.664.66
#FFFFFF4.511.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A70C2
Deuteranopia (green-blind)
#5A7ABC
Tritanopia (blue-blind)
#AC6280
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #ab51bf;
/* rgb */ color: rgb(171, 81, 191);
/* oklch */ color: oklch(59.0% 0.182 320.0);
Tailwind
colors: {
  custom: {
    50: '#c786d3',
    500: '#ab51bf',
    950: '#000000',
  },
}
SCSS
$custom: #ab51bf;
$custom-light: #c786d3;
$custom-dark: #000000;
JSON
{
  "hex": "#ab51bf",
  "rgb": {
    "r": 171,
    "g": 81,
    "b": 191
  },
  "hsl": {
    "h": 289.091,
    "s": 46.218,
    "l": 53.333
  },
  "oklch": {
    "l": 0.59036,
    "c": 0.18209,
    "h": 320
  },
  "luminance": 0.18304
}

Semantic roles & 50–950 ramp

primary
#AB51BF
secondary
#A7CE9E
accent
#D6526A
background
#FCF8FD
surface
#F8F0FA
border
#D1CBD3
text
#130B14
muted
#827C83

Preview Lab

Preview with #AB51BF

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

Preview Lab → · Contrast checker → · Palette generator →

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