#AB7AFA#AB7AFA

#AB7AFA is a light, vivid violet. Relative luminance 0.295; OKLCH L 68.4% C 0.185 H 299.1°. Best body text is #000000 at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#AB7AFA
RGBrgb(171, 122, 250)
HSLhsl(263, 93%, 73%)
HSVhsv(263, 51%, 98%)
CMYKcmyk(31.6%, 51.2%, 0%, 2%)
CIE-LABlab(61.20, 45.04, -57.30)
CIE-LCHlch(61.20, 72.88, 308.17°)
OKLaboklab(68.42% 0.0901 -0.1617)
OKLCHoklch(68.42% 0.185 299.1)
XYZxyz(41.0053, 29.4788, 93.9536)
Luminance0.2948 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB7AFA #C9FA7A
analogous
#7A89FA #AB7AFA #EB7AFA
triadic
#AB7AFA #FAAB7A #7AFAAB
tetradic
#AB7AFA #FA7A89 #C9FA7A #7AFAEB
square
#AB7AFA #FA7A89 #C9FA7A #7AFAEB
split-complementary
#AB7AFA #FAEB7A #89FA7A
monochromatic
#6209F1 #863FF8 #AB7AFA #D0B5FC #ECE2FE

Accessibility & contrast

On white

3.05
#AB7AFA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.90
#AB7AFA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB7AFA
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB7AFA#FFFFFF#000000##000000
##AB7AFA1.003.056.906.90
#FFFFFF3.051.0021.0021.00
#0000006.9021.001.001.00
##0000006.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B94FE
Deuteranopia (green-blind)
#5993F7
Tritanopia (blue-blind)
#9B93AF
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #ab7afa;
/* rgb */ color: rgb(171, 122, 250);
/* oklch */ color: oklch(68.4% 0.185 299.1);
Tailwind
colors: {
  custom: {
    50: '#c7a2fc',
    500: '#ab7afa',
    950: '#000000',
  },
}
SCSS
$custom: #ab7afa;
$custom-light: #c7a2fc;
$custom-dark: #000000;
JSON
{
  "hex": "#ab7afa",
  "rgb": {
    "r": 171,
    "g": 122,
    "b": 250
  },
  "hsl": {
    "h": 262.969,
    "s": 92.754,
    "l": 72.941
  },
  "oklch": {
    "l": 0.6842,
    "c": 0.18508,
    "h": 299.1
  },
  "luminance": 0.29479
}

Semantic roles & 50–950 ramp

primary
#AB7AFA
secondary
#E9F6D5
accent
#E6008E
background
#FCFAFF
surface
#F9F3FF
border
#D2CDD7
text
#130F18
muted
#827F86

Preview Lab

Preview with #AB7AFA

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

Preview Lab → · Contrast checker → · Palette generator →

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