#AB51D5#AB51D5

#AB51D5 is a mid, highly saturated purple. Relative luminance 0.193; OKLCH L 60.3% C 0.204 H 313.4°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#AB51D5
RGBrgb(171, 81, 213)
HSLhsl(281, 61%, 58%)
HSVhsv(281, 62%, 84%)
CMYKcmyk(19.7%, 62%, 0%, 16.5%)
CIE-LABlab(51.09, 57.72, -52.73)
CIE-LCHlch(51.09, 78.18, 317.59°)
OKLaboklab(60.33% 0.1401 -0.1482)
OKLCHoklch(60.33% 0.204 313.4)
XYZxyz(31.7452, 19.3478, 65.0001)
Luminance0.1935 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB51D5 #7BD551
analogous
#6951D5 #AB51D5 #D551BD
triadic
#AB51D5 #D5AB51 #51D5AB
tetradic
#AB51D5 #D56951 #7BD551 #51BDD5
square
#AB51D5 #D56951 #7BD551 #51BDD5
split-complementary
#AB51D5 #BDD551 #51D569
monochromatic
#69218A #8E2DBC #AB51D5 #C382E1 #DBB4ED

Accessibility & contrast

On white

4.31
#AB51D5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#AB51D5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB51D5
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB51D5#FFFFFF#000000##000000
##AB51D51.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#1D75D9
Deuteranopia (green-blind)
#4A7CD2
Tritanopia (blue-blind)
#A76A8C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ab51d5;
/* rgb */ color: rgb(171, 81, 213);
/* oklch */ color: oklch(60.3% 0.204 313.4);
Tailwind
colors: {
  custom: {
    50: '#c787e2',
    500: '#ab51d5',
    950: '#000000',
  },
}
SCSS
$custom: #ab51d5;
$custom-light: #c787e2;
$custom-dark: #000000;
JSON
{
  "hex": "#ab51d5",
  "rgb": {
    "r": 171,
    "g": 81,
    "b": 213
  },
  "hsl": {
    "h": 280.909,
    "s": 61.111,
    "l": 57.647
  },
  "oklch": {
    "l": 0.60325,
    "c": 0.20388,
    "h": 313.4
  },
  "luminance": 0.19347
}

Semantic roles & 50–950 ramp

primary
#AB51D5
secondary
#B7DBA6
accent
#E44477
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #AB51D5

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

Preview Lab → · Contrast checker → · Palette generator →

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