#AB7BEE#AB7BEE

#AB7BEE is a light, vivid violet. Relative luminance 0.290; OKLCH L 67.9% C 0.169 H 301.3°. Best body text is #000000 at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#AB7BEE
RGBrgb(171, 123, 238)
HSLhsl(265, 77%, 71%)
HSVhsv(265, 48%, 93%)
CMYKcmyk(28.2%, 48.3%, 0%, 6.7%)
CIE-LABlab(60.78, 41.57, -51.34)
CIE-LCHlch(60.78, 66.06, 309.00°)
OKLaboklab(67.9% 0.0878 -0.1443)
OKLCHoklch(67.9% 0.169 301.3)
XYZxyz(39.3066, 28.9968, 84.3985)
Luminance0.2900 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB7BEE #BEEE7B
analogous
#7B84EE #AB7BEE #E47BEE
triadic
#AB7BEE #EEAB7B #7BEEAB
tetradic
#AB7BEE #EE7B84 #BEEE7B #7BEEE4
square
#AB7BEE #EE7B84 #BEEE7B #7BEEE4
split-complementary
#AB7BEE #EEE47B #84EE7B
monochromatic
#681BD3 #8845E7 #AB7BEE #CEB1F5 #EEE4FC

Accessibility & contrast

On white

3.09
#AB7BEE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.80
#AB7BEE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB7BEE
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB7BEE#FFFFFF#000000##000000
##AB7BEE1.003.096.806.80
#FFFFFF3.091.0021.0021.00
#0000006.8021.001.001.00
##0000006.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5792F2
Deuteranopia (green-blind)
#6392EB
Tritanopia (blue-blind)
#9E90A9
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #ab7bee;
/* rgb */ color: rgb(171, 123, 238);
/* oklch */ color: oklch(67.9% 0.169 301.3);
Tailwind
colors: {
  custom: {
    50: '#c7a2f4',
    500: '#ab7bee',
    950: '#000000',
  },
}
SCSS
$custom: #ab7bee;
$custom-light: #c7a2f4;
$custom-dark: #000000;
JSON
{
  "hex": "#ab7bee",
  "rgb": {
    "r": 171,
    "g": 123,
    "b": 238
  },
  "hsl": {
    "h": 265.043,
    "s": 77.181,
    "l": 70.784
  },
  "oklch": {
    "l": 0.67898,
    "c": 0.16886,
    "h": 301.3
  },
  "luminance": 0.28997
}

Semantic roles & 50–950 ramp

primary
#AB7BEE
secondary
#E5F2D3
accent
#D90C84
background
#FCFAFE
surface
#F8F3FD
border
#D1CDD5
text
#130F17
muted
#827F85

Preview Lab

Preview with #AB7BEE

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

Preview Lab → · Contrast checker → · Palette generator →

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