#AB6AFE#AB6AFE

#AB6AFE is a light, highly saturated violet. Relative luminance 0.261; OKLCH L 66.2% C 0.213 H 301.0°. Best body text is #000000 at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#AB6AFE
RGBrgb(171, 106, 254)
HSLhsl(266, 99%, 71%)
HSVhsv(266, 58%, 100%)
CMYKcmyk(32.7%, 58.3%, 0%, 0.4%)
CIE-LABlab(58.15, 54.55, -64.39)
CIE-LCHlch(58.15, 84.39, 310.27°)
OKLaboklab(66.25% 0.1097 -0.1824)
OKLCHoklch(66.25% 0.213 301)
XYZxyz(39.8338, 26.1216, 96.6901)
Luminance0.2612 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB6AFE #BDFE6A
analogous
#6A73FE #AB6AFE #F56AFE
triadic
#AB6AFE #FEAB6A #6AFEAB
tetradic
#AB6AFE #FE6A73 #BDFE6A #6AFEF5
square
#AB6AFE #FE6A73 #BDFE6A #6AFEF5
split-complementary
#AB6AFE #FEF56A #73FE6A
monochromatic
#6902EC #892DFE #AB6AFE #CDA7FE #EEE1FF

Accessibility & contrast

On white

3.37
#AB6AFE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.22
#AB6AFE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB6AFE
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB6AFE#FFFFFF#000000##000000
##AB6AFE1.003.376.226.22
#FFFFFF3.371.0021.0021.00
#0000006.2221.001.001.00
##0000006.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#1B8BFF
Deuteranopia (green-blind)
#3E8BFB
Tritanopia (blue-blind)
#9A89AA
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #ab6afe;
/* rgb */ color: rgb(171, 106, 254);
/* oklch */ color: oklch(66.2% 0.213 301.0);
Tailwind
colors: {
  custom: {
    50: '#c897ff',
    500: '#ab6afe',
    950: '#000000',
  },
}
SCSS
$custom: #ab6afe;
$custom-light: #c897ff;
$custom-dark: #000000;
JSON
{
  "hex": "#ab6afe",
  "rgb": {
    "r": 171,
    "g": 106,
    "b": 254
  },
  "hsl": {
    "h": 266.351,
    "s": 98.667,
    "l": 70.588
  },
  "oklch": {
    "l": 0.66248,
    "c": 0.21287,
    "h": 301
  },
  "luminance": 0.26122
}

Semantic roles & 50–950 ramp

primary
#AB6AFE
secondary
#E4F6CE
accent
#E60081
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E18
muted
#827E86

Preview Lab

Preview with #AB6AFE

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

Preview Lab → · Contrast checker → · Palette generator →

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