#AB7AEA#AB7AEA

#AB7AEA is a light, vivid violet. Relative luminance 0.285; OKLCH L 67.5% C 0.165 H 302.4°. Best body text is #000000 at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#AB7AEA
RGBrgb(171, 122, 234)
HSLhsl(266, 73%, 70%)
HSVhsv(266, 48%, 92%)
CMYKcmyk(26.9%, 47.9%, 0%, 8.2%)
CIE-LABlab(60.35, 41.17, -49.80)
CIE-LCHlch(60.35, 64.61, 309.58°)
OKLaboklab(67.51% 0.0886 -0.1398)
OKLCHoklch(67.51% 0.165 302.4)
XYZxyz(38.6021, 28.5175, 81.2967)
Luminance0.2852 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB7AEA #B9EA7A
analogous
#7A81EA #AB7AEA #E37AEA
triadic
#AB7AEA #EAAB7A #7AEAAB
tetradic
#AB7AEA #EA7A81 #B9EA7A #7AEAE3
square
#AB7AEA #EA7A81 #B9EA7A #7AEAE3
split-complementary
#AB7AEA #EAE37A #81EA7A
monochromatic
#6A20CA #8A45E2 #AB7AEA #CCAFF2 #EEE4FB

Accessibility & contrast

On white

3.13
#AB7AEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.70
#AB7AEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB7AEA
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB7AEA#FFFFFF#000000##000000
##AB7AEA1.003.136.706.70
#FFFFFF3.131.0021.0021.00
#0000006.7021.001.001.00
##0000006.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5891EE
Deuteranopia (green-blind)
#6591E7
Tritanopia (blue-blind)
#A08EA7
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #ab7aea;
/* rgb */ color: rgb(171, 122, 234);
/* oklch */ color: oklch(67.5% 0.165 302.4);
Tailwind
colors: {
  custom: {
    50: '#c6a1f1',
    500: '#ab7aea',
    950: '#000000',
  },
}
SCSS
$custom: #ab7aea;
$custom-light: #c6a1f1;
$custom-dark: #000000;
JSON
{
  "hex": "#ab7aea",
  "rgb": {
    "r": 171,
    "g": 122,
    "b": 234
  },
  "hsl": {
    "h": 266.25,
    "s": 72.727,
    "l": 69.804
  },
  "oklch": {
    "l": 0.67513,
    "c": 0.16549,
    "h": 302.4
  },
  "luminance": 0.28518
}

Semantic roles & 50–950 ramp

primary
#AB7AEA
secondary
#E2F0D0
accent
#D5117F
background
#FCFAFE
surface
#F8F3FD
border
#D1CDD5
text
#130F17
muted
#827F85

Preview Lab

Preview with #AB7AEA

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

Preview Lab → · Contrast checker → · Palette generator →

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