#AB51E8#AB51E8

#AB51E8 is a mid, highly saturated violet. Relative luminance 0.204; OKLCH L 61.5% C 0.223 H 308.6°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#AB51E8
RGBrgb(171, 81, 232)
HSLhsl(276, 77%, 61%)
HSVhsv(276, 65%, 91%)
CMYKcmyk(26.3%, 65.1%, 0%, 9%)
CIE-LABlab(52.25, 61.78, -61.62)
CIE-LCHlch(52.25, 87.26, 315.07°)
OKLaboklab(61.53% 0.1392 -0.1742)
OKLCHoklch(61.53% 0.223 308.6)
XYZxyz(34.2996, 20.3695, 78.4531)
Luminance0.2037 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB51E8 #8EE851
analogous
#6051E8 #AB51E8 #E851D9
triadic
#AB51E8 #E8AB51 #51E8AB
tetradic
#AB51E8 #E86051 #8EE851 #51D9E8
square
#AB51E8 #E86051 #8EE851 #51D9E8
split-complementary
#AB51E8 #D9E851 #51E860
monochromatic
#6D16A8 #901DDE #AB51E8 #C587EF #DFBDF6

Accessibility & contrast

On white

4.14
#AB51E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#AB51E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB51E8
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB51E8#FFFFFF#000000##000000
##AB51E81.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079ED
Deuteranopia (green-blind)
#367EE5
Tritanopia (blue-blind)
#A27196
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ab51e8;
/* rgb */ color: rgb(171, 81, 232);
/* oklch */ color: oklch(61.5% 0.223 308.6);
Tailwind
colors: {
  custom: {
    50: '#c887f0',
    500: '#ab51e8',
    950: '#000000',
  },
}
SCSS
$custom: #ab51e8;
$custom-light: #c887f0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab51e8",
  "rgb": {
    "r": 171,
    "g": 81,
    "b": 232
  },
  "hsl": {
    "h": 275.762,
    "s": 76.65,
    "l": 61.373
  },
  "oklch": {
    "l": 0.61534,
    "c": 0.223,
    "h": 308.6
  },
  "luminance": 0.20369
}

Semantic roles & 50–950 ramp

primary
#AB51E8
secondary
#C5E7AE
accent
#D90D5F
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C17
muted
#827D85

Preview Lab

Preview with #AB51E8

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

Preview Lab → · Contrast checker → · Palette generator →

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