#AB51E5#AB51E5

#AB51E5 is a mid, highly saturated violet. Relative luminance 0.202; OKLCH L 61.3% C 0.220 H 309.3°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#AB51E5
RGBrgb(171, 81, 229)
HSLhsl(276, 74%, 61%)
HSVhsv(276, 65%, 90%)
CMYKcmyk(25.3%, 64.6%, 0%, 10.2%)
CIE-LABlab(52.06, 61.13, -60.24)
CIE-LCHlch(52.06, 85.82, 315.42°)
OKLaboklab(61.34% 0.1394 -0.1702)
OKLCHoklch(61.34% 0.22 309.3)
XYZxyz(33.8771, 20.2005, 76.2280)
Luminance0.2020 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB51E5 #8BE551
analogous
#6151E5 #AB51E5 #E551D5
triadic
#AB51E5 #E5AB51 #51E5AB
tetradic
#AB51E5 #E56151 #8BE551 #51D5E5
square
#AB51E5 #E56151 #8BE551 #51D5E5
split-complementary
#AB51E5 #D5E551 #51E561
monochromatic
#6D18A3 #9020D8 #AB51E5 #C586ED #DEBBF5

Accessibility & contrast

On white

4.17
#AB51E5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#AB51E5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB51E5
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB51E5#FFFFFF#000000##000000
##AB51E51.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078E9
Deuteranopia (green-blind)
#3A7DE2
Tritanopia (blue-blind)
#A36F94
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ab51e5;
/* rgb */ color: rgb(171, 81, 229);
/* oklch */ color: oklch(61.3% 0.220 309.3);
Tailwind
colors: {
  custom: {
    50: '#c887ee',
    500: '#ab51e5',
    950: '#000000',
  },
}
SCSS
$custom: #ab51e5;
$custom-light: #c887ee;
$custom-dark: #000000;
JSON
{
  "hex": "#ab51e5",
  "rgb": {
    "r": 171,
    "g": 81,
    "b": 229
  },
  "hsl": {
    "h": 276.486,
    "s": 74,
    "l": 60.784
  },
  "oklch": {
    "l": 0.61338,
    "c": 0.21998,
    "h": 309.3
  },
  "luminance": 0.202
}

Semantic roles & 50–950 ramp

primary
#AB51E5
secondary
#C3E5AD
accent
#D60F5D
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AB51E5

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

Preview Lab → · Contrast checker → · Palette generator →

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