#AB51BB#AB51BB

#AB51BB is a mid, vivid purple. Relative luminance 0.181; OKLCH L 58.8% C 0.178 H 321.4°. Best body text is #000000 at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#AB51BB
RGBrgb(171, 81, 187)
HSLhsl(291, 44%, 53%)
HSVhsv(291, 57%, 73%)
CMYKcmyk(8.6%, 56.7%, 0%, 26.7%)
CIE-LABlab(49.66, 52.47, -40.06)
CIE-LCHlch(49.66, 66.01, 322.64°)
OKLaboklab(58.82% 0.1392 -0.1112)
OKLCHoklch(58.82% 0.178 321.4)
XYZxyz(28.7057, 18.1320, 48.9918)
Luminance0.1813 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB51BB #61BB51
analogous
#7651BB #AB51BB #BB5196
triadic
#AB51BB #BBAB51 #51BBAB
tetradic
#AB51BB #BB7651 #61BB51 #5196BB
square
#AB51BB #BB7651 #61BB51 #5196BB
split-complementary
#AB51BB #96BB51 #51BB76
monochromatic
#5F2969 #873A95 #AB51BB #C07DCC #D5A9DD

Accessibility & contrast

On white

4.54
#AB51BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##AB51BB#FFFFFF#000000##000000
##AB51BB1.004.544.634.63
#FFFFFF4.541.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D70BE
Deuteranopia (green-blind)
#5C7AB8
Tritanopia (blue-blind)
#AD607E
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #ab51bb;
/* rgb */ color: rgb(171, 81, 187);
/* oklch */ color: oklch(58.8% 0.178 321.4);
Tailwind
colors: {
  custom: {
    50: '#c686d0',
    500: '#ab51bb',
    950: '#000000',
  },
}
SCSS
$custom: #ab51bb;
$custom-light: #c686d0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab51bb",
  "rgb": {
    "r": 171,
    "g": 81,
    "b": 187
  },
  "hsl": {
    "h": 290.943,
    "s": 43.802,
    "l": 52.549
  },
  "oklch": {
    "l": 0.58815,
    "c": 0.1782,
    "h": 321.4
  },
  "luminance": 0.18131
}

Semantic roles & 50–950 ramp

primary
#AB51BB
secondary
#A4CB9D
accent
#D45467
background
#FCF8FC
surface
#F8F0F9
border
#D1CBD2
text
#130B14
muted
#827C82

Preview Lab

Preview with #AB51BB

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

Preview Lab → · Contrast checker → · Palette generator →

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