#AB7AEB#AB7AEB

#AB7AEB is a light, vivid violet. Relative luminance 0.286; OKLCH L 67.6% C 0.167 H 302.2°. Best body text is #000000 at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#AB7AEB
RGBrgb(171, 122, 235)
HSLhsl(266, 74%, 70%)
HSVhsv(266, 48%, 92%)
CMYKcmyk(27.2%, 48.1%, 0%, 7.8%)
CIE-LABlab(60.40, 41.41, -50.27)
CIE-LCHlch(60.40, 65.13, 309.48°)
OKLaboklab(67.57% 0.0888 -0.1411)
OKLCHoklch(67.57% 0.167 302.2)
XYZxyz(38.7462, 28.5751, 82.0554)
Luminance0.2858 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB7AEB #BAEB7A
analogous
#7A81EB #AB7AEB #E47AEB
triadic
#AB7AEB #EBAB7A #7AEBAB
tetradic
#AB7AEB #EB7A81 #BAEB7A #7AEBE4
square
#AB7AEB #EB7A81 #BAEB7A #7AEBE4
split-complementary
#AB7AEB #EBE47A #81EB7A
monochromatic
#6A1FCC #8945E3 #AB7AEB #CDAFF3 #EEE4FB

Accessibility & contrast

On white

3.13
#AB7AEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.72
#AB7AEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB7AEB
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB7AEB#FFFFFF#000000##000000
##AB7AEB1.003.136.726.72
#FFFFFF3.131.0021.0021.00
#0000006.7221.001.001.00
##0000006.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5891EF
Deuteranopia (green-blind)
#6491E8
Tritanopia (blue-blind)
#9F8EA7
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #ab7aeb;
/* rgb */ color: rgb(171, 122, 235);
/* oklch */ color: oklch(67.6% 0.167 302.2);
Tailwind
colors: {
  custom: {
    50: '#c7a1f2',
    500: '#ab7aeb',
    950: '#000000',
  },
}
SCSS
$custom: #ab7aeb;
$custom-light: #c7a1f2;
$custom-dark: #000000;
JSON
{
  "hex": "#ab7aeb",
  "rgb": {
    "r": 171,
    "g": 122,
    "b": 235
  },
  "hsl": {
    "h": 266.018,
    "s": 73.856,
    "l": 70
  },
  "oklch": {
    "l": 0.67568,
    "c": 0.16672,
    "h": 302.2
  },
  "luminance": 0.28575
}

Semantic roles & 50–950 ramp

primary
#AB7AEB
secondary
#E2F0D1
accent
#D61080
background
#FCFAFE
surface
#F8F3FD
border
#D1CDD5
text
#130F17
muted
#827F85

Preview Lab

Preview with #AB7AEB

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

Preview Lab → · Contrast checker → · Palette generator →

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