#AB51E9#AB51E9

#AB51E9 is a mid, highly saturated violet. Relative luminance 0.204; OKLCH L 61.6% C 0.224 H 308.4°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#AB51E9
RGBrgb(171, 81, 233)
HSLhsl(276, 78%, 62%)
HSVhsv(276, 65%, 91%)
CMYKcmyk(26.6%, 65.2%, 0%, 8.6%)
CIE-LABlab(52.32, 62.00, -62.08)
CIE-LCHlch(52.32, 87.74, 314.96°)
OKLaboklab(61.6% 0.1391 -0.1756)
OKLCHoklch(61.6% 0.224 308.4)
XYZxyz(34.4420, 20.4265, 79.2033)
Luminance0.2043 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB51E9 #8FE951
analogous
#5F51E9 #AB51E9 #E951DB
triadic
#AB51E9 #E9AB51 #51E9AB
tetradic
#AB51E9 #E95F51 #8FE951 #51DBE9
square
#AB51E9 #E95F51 #8FE951 #51DBE9
split-complementary
#AB51E9 #DBE951 #51E95F
monochromatic
#6D16AA #901CE0 #AB51E9 #C587F0 #DFBEF7

Accessibility & contrast

On white

4.13
#AB51E9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#AB51E9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB51E9
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB51E9#FFFFFF#000000##000000
##AB51E91.004.135.095.09
#FFFFFF4.131.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079EE
Deuteranopia (green-blind)
#347EE6
Tritanopia (blue-blind)
#A27196
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ab51e9;
/* rgb */ color: rgb(171, 81, 233);
/* oklch */ color: oklch(61.6% 0.224 308.4);
Tailwind
colors: {
  custom: {
    50: '#c887f1',
    500: '#ab51e9',
    950: '#000000',
  },
}
SCSS
$custom: #ab51e9;
$custom-light: #c887f1;
$custom-dark: #000000;
JSON
{
  "hex": "#ab51e9",
  "rgb": {
    "r": 171,
    "g": 81,
    "b": 233
  },
  "hsl": {
    "h": 275.526,
    "s": 77.551,
    "l": 61.569
  },
  "oklch": {
    "l": 0.616,
    "c": 0.22402,
    "h": 308.4
  },
  "luminance": 0.20426
}

Semantic roles & 50–950 ramp

primary
#AB51E9
secondary
#C6E7AF
accent
#DA0C60
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C17
muted
#827D85

Preview Lab

Preview with #AB51E9

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

Preview Lab → · Contrast checker → · Palette generator →

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