#AB7AFC#AB7AFC

#AB7AFC is a light, vivid violet. Relative luminance 0.296; OKLCH L 68.5% C 0.188 H 298.8°. Best body text is #000000 at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#AB7AFC
RGBrgb(171, 122, 252)
HSLhsl(263, 96%, 73%)
HSVhsv(263, 52%, 99%)
CMYKcmyk(32.1%, 51.6%, 0%, 1.2%)
CIE-LABlab(61.31, 45.53, -58.23)
CIE-LCHlch(61.31, 73.91, 308.03°)
OKLaboklab(68.54% 0.0902 -0.1644)
OKLCHoklch(68.54% 0.188 298.8)
XYZxyz(41.3206, 29.6049, 95.6139)
Luminance0.2960 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB7AFC #CBFC7A
analogous
#7A8AFC #AB7AFC #EC7AFC
triadic
#AB7AFC #FCAB7A #7AFCAB
tetradic
#AB7AFC #FC7A8A #CBFC7A #7AFCEC
square
#AB7AFC #FC7A8A #CBFC7A #7AFCEC
split-complementary
#AB7AFC #FCEC7A #8AFC7A
monochromatic
#6006F6 #853EFB #AB7AFC #D1B6FD #ECE1FE

Accessibility & contrast

On white

3.03
#AB7AFC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.92
#AB7AFC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB7AFC
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB7AFC#FFFFFF#000000##000000
##AB7AFC1.003.036.926.92
#FFFFFF3.031.0021.0021.00
#0000006.9221.001.001.00
##0000006.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4994FF
Deuteranopia (green-blind)
#5793F9
Tritanopia (blue-blind)
#9A93B0
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #ab7afc;
/* rgb */ color: rgb(171, 122, 252);
/* oklch */ color: oklch(68.5% 0.188 298.8);
Tailwind
colors: {
  custom: {
    50: '#c8a2fe',
    500: '#ab7afc',
    950: '#000000',
  },
}
SCSS
$custom: #ab7afc;
$custom-light: #c8a2fe;
$custom-dark: #000000;
JSON
{
  "hex": "#ab7afc",
  "rgb": {
    "r": 171,
    "g": 122,
    "b": 252
  },
  "hsl": {
    "h": 262.615,
    "s": 95.588,
    "l": 73.333
  },
  "oklch": {
    "l": 0.68537,
    "c": 0.18752,
    "h": 298.8
  },
  "luminance": 0.29605
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AB7AFC

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

Preview Lab → · Contrast checker → · Palette generator →

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