#AB7EEE#AB7EEE

#AB7EEE is a light, vivid violet. Relative luminance 0.298; OKLCH L 68.4% C 0.164 H 300.7°. Best body text is #000000 at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#AB7EEE
RGBrgb(171, 126, 238)
HSLhsl(264, 77%, 71%)
HSVhsv(264, 47%, 93%)
CMYKcmyk(28.2%, 47.1%, 0%, 6.7%)
CIE-LABlab(61.44, 39.91, -50.29)
CIE-LCHlch(61.44, 64.21, 308.44°)
OKLaboklab(68.39% 0.0838 -0.1412)
OKLCHoklch(68.39% 0.164 300.7)
XYZxyz(39.6845, 29.7525, 84.5244)
Luminance0.2975 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB7EEE #C1EE7E
analogous
#7E89EE #AB7EEE #E37EEE
triadic
#AB7EEE #EEAB7E #7EEEAB
tetradic
#AB7EEE #EE7E89 #C1EE7E #7EEEE3
square
#AB7EEE #EE7E89 #C1EE7E #7EEEE3
split-complementary
#AB7EEE #EEE37E #89EE7E
monochromatic
#671CD5 #8848E7 #AB7EEE #CEB4F5 #EDE4FB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AB7EEE#FFFFFF#000000##000000
##AB7EEE1.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)
#5C94F2
Deuteranopia (green-blind)
#6694EB
Tritanopia (blue-blind)
#9E92AB
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #ab7eee;
/* rgb */ color: rgb(171, 126, 238);
/* oklch */ color: oklch(68.4% 0.164 300.7);
Tailwind
colors: {
  custom: {
    50: '#c7a4f4',
    500: '#ab7eee',
    950: '#000000',
  },
}
SCSS
$custom: #ab7eee;
$custom-light: #c7a4f4;
$custom-dark: #000000;
JSON
{
  "hex": "#ab7eee",
  "rgb": {
    "r": 171,
    "g": 126,
    "b": 238
  },
  "hsl": {
    "h": 264.107,
    "s": 76.712,
    "l": 71.373
  },
  "oklch": {
    "l": 0.68392,
    "c": 0.1642,
    "h": 300.7
  },
  "luminance": 0.29753
}

Semantic roles & 50–950 ramp

primary
#AB7EEE
secondary
#E7F2D5
accent
#D90D87
background
#FCFAFE
surface
#F8F4FD
border
#D1CED5
text
#130F17
muted
#827F85

Preview Lab

Preview with #AB7EEE

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

Preview Lab → · Contrast checker → · Palette generator →

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