#AB7AFE#AB7AFE

#AB7AFE is a light, vivid violet. Relative luminance 0.297; OKLCH L 68.7% C 0.190 H 298.4°. Best body text is #000000 at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#AB7AFE
RGBrgb(171, 122, 254)
HSLhsl(262, 99%, 74%)
HSVhsv(262, 52%, 100%)
CMYKcmyk(32.7%, 52%, 0%, 0.4%)
CIE-LABlab(61.42, 46.03, -59.15)
CIE-LCHlch(61.42, 74.95, 307.89°)
OKLaboklab(68.66% 0.0903 -0.1671)
OKLCHoklch(68.66% 0.19 298.4)
XYZxyz(41.6392, 29.7323, 97.2919)
Luminance0.2973 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB7AFE #CDFE7A
analogous
#7A8BFE #AB7AFE #ED7AFE
triadic
#AB7AFE #FEAB7A #7AFEAB
tetradic
#AB7AFE #FE7A8B #CDFE7A #7AFEED
square
#AB7AFE #FE7A8B #CDFE7A #7AFEED
split-complementary
#AB7AFE #FEED7A #8BFE7A
monochromatic
#5F02FC #853DFE #AB7AFE #D1B7FE #ECE1FF

Accessibility & contrast

On white

3.02
#AB7AFE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.95
#AB7AFE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB7AFE
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB7AFE#FFFFFF#000000##000000
##AB7AFE1.003.026.956.95
#FFFFFF3.021.0021.0021.00
#0000006.9521.001.001.00
##0000006.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4794FF
Deuteranopia (green-blind)
#5593FB
Tritanopia (blue-blind)
#9994B1
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #ab7afe;
/* rgb */ color: rgb(171, 122, 254);
/* oklch */ color: oklch(68.7% 0.190 298.4);
Tailwind
colors: {
  custom: {
    50: '#c8a2ff',
    500: '#ab7afe',
    950: '#000000',
  },
}
SCSS
$custom: #ab7afe;
$custom-light: #c8a2ff;
$custom-dark: #000000;
JSON
{
  "hex": "#ab7afe",
  "rgb": {
    "r": 171,
    "g": 122,
    "b": 254
  },
  "hsl": {
    "h": 262.273,
    "s": 98.507,
    "l": 73.725
  },
  "oklch": {
    "l": 0.68655,
    "c": 0.18995,
    "h": 298.4
  },
  "luminance": 0.29733
}

Semantic roles & 50–950 ramp

primary
#AB7AFE
secondary
#EAF7D4
accent
#E60090
background
#FCFAFF
surface
#F9F3FF
border
#D2CDD7
text
#130F18
muted
#827F86

Preview Lab

Preview with #AB7AFE

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

Preview Lab → · Contrast checker → · Palette generator →

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