#AB7EEC#AB7EEC

#AB7EEC is a light, vivid violet. Relative luminance 0.296; OKLCH L 68.3% C 0.162 H 301.1°. Best body text is #000000 at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#AB7EEC
RGBrgb(171, 126, 236)
HSLhsl(265, 74%, 71%)
HSVhsv(265, 47%, 93%)
CMYKcmyk(27.5%, 46.6%, 0%, 7.5%)
CIE-LABlab(61.34, 39.43, -49.35)
CIE-LCHlch(61.34, 63.17, 308.63°)
OKLaboklab(68.28% 0.0836 -0.1384)
OKLCHoklch(68.28% 0.162 301.1)
XYZxyz(39.3923, 29.6356, 82.9856)
Luminance0.2964 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB7EEC #BFEC7E
analogous
#7E88EC #AB7EEC #E27EEC
triadic
#AB7EEC #ECAB7E #7EECAB
tetradic
#AB7EEC #EC7E88 #BFEC7E #7EECE2
square
#AB7EEC #EC7E88 #BFEC7E #7EECE2
split-complementary
#AB7EEC #ECE27E #88EC7E
monochromatic
#681FD1 #8849E4 #AB7EEC #CEB3F4 #EEE4FB

Accessibility & contrast

On white

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

On black

6.93
#AB7EEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB7EEC
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB7EEC#FFFFFF#000000##000000
##AB7EEC1.003.036.936.93
#FFFFFF3.031.0021.0021.00
#0000006.9321.001.001.00
##0000006.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D93F0
Deuteranopia (green-blind)
#6894E9
Tritanopia (blue-blind)
#9F92AA
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #ab7eec;
/* rgb */ color: rgb(171, 126, 236);
/* oklch */ color: oklch(68.3% 0.162 301.1);
Tailwind
colors: {
  custom: {
    50: '#c6a4f2',
    500: '#ab7eec',
    950: '#000000',
  },
}
SCSS
$custom: #ab7eec;
$custom-light: #c6a4f2;
$custom-dark: #000000;
JSON
{
  "hex": "#ab7eec",
  "rgb": {
    "r": 171,
    "g": 126,
    "b": 236
  },
  "hsl": {
    "h": 264.545,
    "s": 74.324,
    "l": 70.98
  },
  "oklch": {
    "l": 0.68283,
    "c": 0.1617,
    "h": 301.1
  },
  "luminance": 0.29636
}

Semantic roles & 50–950 ramp

primary
#AB7EEC
secondary
#E6F2D4
accent
#D60F85
background
#FCFAFE
surface
#F8F4FD
border
#D1CED5
text
#130F17
muted
#827F85

Preview Lab

Preview with #AB7EEC

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

Preview Lab → · Contrast checker → · Palette generator →

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