#AB51D8#AB51D8

#AB51D8 is a mid, highly saturated purple. Relative luminance 0.195; OKLCH L 60.5% C 0.207 H 312.6°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#AB51D8
RGBrgb(171, 81, 216)
HSLhsl(280, 63%, 58%)
HSVhsv(280, 63%, 85%)
CMYKcmyk(20.8%, 62.5%, 0%, 15.3%)
CIE-LABlab(51.27, 58.35, -54.15)
CIE-LCHlch(51.27, 79.61, 317.14°)
OKLaboklab(60.51% 0.14 -0.1523)
OKLCHoklch(60.51% 0.207 312.6)
XYZxyz(32.1295, 19.5015, 67.0241)
Luminance0.1950 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB51D8 #7ED851
analogous
#6751D8 #AB51D8 #D851C1
triadic
#AB51D8 #D8AB51 #51D8AB
tetradic
#AB51D8 #D86751 #7ED851 #51C1D8
square
#AB51D8 #D86751 #7ED851 #51C1D8
split-complementary
#AB51D8 #C1D851 #51D867
monochromatic
#6A208F #8F2BC1 #AB51D8 #C383E3 #DBB5EE

Accessibility & contrast

On white

4.29
#AB51D8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#AB51D8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB51D8
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB51D8#FFFFFF#000000##000000
##AB51D81.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#1675DC
Deuteranopia (green-blind)
#477CD5
Tritanopia (blue-blind)
#A66B8D
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ab51d8;
/* rgb */ color: rgb(171, 81, 216);
/* oklch */ color: oklch(60.5% 0.207 312.6);
Tailwind
colors: {
  custom: {
    50: '#c887e5',
    500: '#ab51d8',
    950: '#000000',
  },
}
SCSS
$custom: #ab51d8;
$custom-light: #c887e5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab51d8",
  "rgb": {
    "r": 171,
    "g": 81,
    "b": 216
  },
  "hsl": {
    "h": 280,
    "s": 63.38,
    "l": 58.235
  },
  "oklch": {
    "l": 0.6051,
    "c": 0.20689,
    "h": 312.6
  },
  "luminance": 0.19501
}

Semantic roles & 50–950 ramp

primary
#AB51D8
secondary
#B9DDA8
accent
#E64178
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #AB51D8

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

Preview Lab → · Contrast checker → · Palette generator →

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