#AB51E1#AB51E1

#AB51E1 is a mid, highly saturated violet. Relative luminance 0.200; OKLCH L 61.1% C 0.216 H 310.3°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#AB51E1
RGBrgb(171, 81, 225)
HSLhsl(278, 71%, 60%)
HSVhsv(278, 64%, 88%)
CMYKcmyk(24%, 64%, 0%, 11.8%)
CIE-LABlab(51.81, 60.27, -58.38)
CIE-LCHlch(51.81, 83.91, 315.91°)
OKLaboklab(61.08% 0.1396 -0.1647)
OKLCHoklch(61.08% 0.216 310.3)
XYZxyz(33.3250, 19.9797, 73.3205)
Luminance0.1998 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB51E1 #87E151
analogous
#6351E1 #AB51E1 #E151CF
triadic
#AB51E1 #E1AB51 #51E1AB
tetradic
#AB51E1 #E16351 #87E151 #51CFE1
square
#AB51E1 #E16351 #87E151 #51CFE1
split-complementary
#AB51E1 #CFE151 #51E163
monochromatic
#6C1B9D #9024D1 #AB51E1 #C485EA #DDB9F3

Accessibility & contrast

On white

4.20
#AB51E1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#AB51E1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB51E1
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB51E1#FFFFFF#000000##000000
##AB51E11.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077E5
Deuteranopia (green-blind)
#3E7DDE
Tritanopia (blue-blind)
#A46E92
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ab51e1;
/* rgb */ color: rgb(171, 81, 225);
/* oklch */ color: oklch(61.1% 0.216 310.3);
Tailwind
colors: {
  custom: {
    50: '#c887eb',
    500: '#ab51e1',
    950: '#000000',
  },
}
SCSS
$custom: #ab51e1;
$custom-light: #c887eb;
$custom-dark: #000000;
JSON
{
  "hex": "#ab51e1",
  "rgb": {
    "r": 171,
    "g": 81,
    "b": 225
  },
  "hsl": {
    "h": 277.5,
    "s": 70.588,
    "l": 60
  },
  "oklch": {
    "l": 0.61079,
    "c": 0.21595,
    "h": 310.3
  },
  "luminance": 0.19979
}

Semantic roles & 50–950 ramp

primary
#AB51E1
secondary
#C0E3AB
accent
#ED3A7E
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AB51E1

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

Preview Lab → · Contrast checker → · Palette generator →

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