#AB51E4#AB51E4

#AB51E4 is a mid, highly saturated violet. Relative luminance 0.201; OKLCH L 61.3% C 0.219 H 309.6°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#AB51E4
RGBrgb(171, 81, 228)
HSLhsl(277, 73%, 61%)
HSVhsv(277, 64%, 89%)
CMYKcmyk(25%, 64.5%, 0%, 10.6%)
CIE-LABlab(52.00, 60.92, -59.77)
CIE-LCHlch(52.00, 85.34, 315.54°)
OKLaboklab(61.27% 0.1395 -0.1688)
OKLCHoklch(61.27% 0.219 309.6)
XYZxyz(33.7379, 20.1449, 75.4948)
Luminance0.2014 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB51E4 #8AE451
analogous
#6251E4 #AB51E4 #E451D3
triadic
#AB51E4 #E4AB51 #51E4AB
tetradic
#AB51E4 #E46251 #8AE451 #51D3E4
square
#AB51E4 #E46251 #8AE451 #51D3E4
split-complementary
#AB51E4 #D3E451 #51E462
monochromatic
#6D19A2 #9021D7 #AB51E4 #C586EC #DEBBF4

Accessibility & contrast

On white

4.18
#AB51E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#AB51E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB51E4
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB51E4#FFFFFF#000000##000000
##AB51E41.004.185.035.03
#FFFFFF4.181.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ab51e4;
/* rgb */ color: rgb(171, 81, 228);
/* oklch */ color: oklch(61.3% 0.219 309.6);
Tailwind
colors: {
  custom: {
    50: '#c887ed',
    500: '#ab51e4',
    950: '#000000',
  },
}
SCSS
$custom: #ab51e4;
$custom-light: #c887ed;
$custom-dark: #000000;
JSON
{
  "hex": "#ab51e4",
  "rgb": {
    "r": 171,
    "g": 81,
    "b": 228
  },
  "hsl": {
    "h": 276.735,
    "s": 73.134,
    "l": 60.588
  },
  "oklch": {
    "l": 0.61273,
    "c": 0.21897,
    "h": 309.6
  },
  "luminance": 0.20144
}

Semantic roles & 50–950 ramp

primary
#AB51E4
secondary
#C2E4AC
accent
#D5105D
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AB51E4

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

Preview Lab → · Contrast checker → · Palette generator →

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