#AB7AEF#AB7AEF

#AB7AEF is a light, vivid violet. Relative luminance 0.288; OKLCH L 67.8% C 0.172 H 301.3°. Best body text is #000000 at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#AB7AEF
RGBrgb(171, 122, 239)
HSLhsl(265, 79%, 71%)
HSVhsv(265, 49%, 94%)
CMYKcmyk(28.5%, 49%, 0%, 6.3%)
CIE-LABlab(60.61, 42.37, -52.16)
CIE-LCHlch(60.61, 67.20, 309.08°)
OKLaboklab(67.79% 0.0892 -0.1466)
OKLCHoklch(67.79% 0.172 301.3)
XYZxyz(39.3305, 28.8089, 85.1332)
Luminance0.2881 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB7AEF #BEEF7A
analogous
#7A83EF #AB7AEF #E57AEF
triadic
#AB7AEF #EFAB7A #7AEFAB
tetradic
#AB7AEF #EF7A83 #BEEF7A #7AEFE5
square
#AB7AEF #EF7A83 #BEEF7A #7AEFE5
split-complementary
#AB7AEF #EFE57A #83EF7A
monochromatic
#681AD5 #8843E8 #AB7AEF #CEB1F6 #EEE4FC

Accessibility & contrast

On white

3.11
#AB7AEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.76
#AB7AEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB7AEF
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB7AEF#FFFFFF#000000##000000
##AB7AEF1.003.116.766.76
#FFFFFF3.111.0021.0021.00
#0000006.7621.001.001.00
##0000006.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5592F3
Deuteranopia (green-blind)
#6192EC
Tritanopia (blue-blind)
#9E8FA9
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #ab7aef;
/* rgb */ color: rgb(171, 122, 239);
/* oklch */ color: oklch(67.8% 0.172 301.3);
Tailwind
colors: {
  custom: {
    50: '#c7a1f5',
    500: '#ab7aef',
    950: '#000000',
  },
}
SCSS
$custom: #ab7aef;
$custom-light: #c7a1f5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab7aef",
  "rgb": {
    "r": 171,
    "g": 122,
    "b": 239
  },
  "hsl": {
    "h": 265.128,
    "s": 78.523,
    "l": 70.784
  },
  "oklch": {
    "l": 0.67791,
    "c": 0.17163,
    "h": 301.3
  },
  "luminance": 0.28809
}

Semantic roles & 50–950 ramp

primary
#AB7AEF
secondary
#E5F2D3
accent
#DB0B84
background
#FCFAFF
surface
#F8F3FE
border
#D1CDD6
text
#130F17
muted
#827F85

Preview Lab

Preview with #AB7AEF

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

Preview Lab → · Contrast checker → · Palette generator →

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