#AB81EC#AB81EC

#AB81EC is a light, vivid violet. Relative luminance 0.304; OKLCH L 68.8% C 0.157 H 300.4°. Best body text is #000000 at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#AB81EC
RGBrgb(171, 129, 236)
HSLhsl(264, 74%, 72%)
HSVhsv(264, 45%, 93%)
CMYKcmyk(27.5%, 45.3%, 0%, 7.5%)
CIE-LABlab(62.01, 37.76, -48.28)
CIE-LCHlch(62.01, 61.30, 308.03°)
OKLaboklab(68.79% 0.0796 -0.1353)
OKLCHoklch(68.79% 0.157 300.4)
XYZxyz(39.7817, 30.4144, 83.1153)
Luminance0.3041 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB81EC #C2EC81
analogous
#818DEC #AB81EC #E081EC
triadic
#AB81EC #ECAB81 #81ECAB
tetradic
#AB81EC #EC818D #C2EC81 #81ECE0
square
#AB81EC #EC818D #C2EC81 #81ECE0
split-complementary
#AB81EC #ECE081 #8DEC81
monochromatic
#6620D3 #884CE4 #AB81EC #CEB6F4 #EDE4FB

Accessibility & contrast

On white

2.96
#AB81EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.08
#AB81EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB81EC
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB81EC#FFFFFF#000000##000000
##AB81EC1.002.967.087.08
#FFFFFF2.961.0021.0021.00
#0000007.0821.001.001.00
##0000007.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6295F0
Deuteranopia (green-blind)
#6B95E9
Tritanopia (blue-blind)
#9F94AB
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #ab81ec;
/* rgb */ color: rgb(171, 129, 236);
/* oklch */ color: oklch(68.8% 0.157 300.4);
Tailwind
colors: {
  custom: {
    50: '#c6a6f2',
    500: '#ab81ec',
    950: '#000000',
  },
}
SCSS
$custom: #ab81ec;
$custom-light: #c6a6f2;
$custom-dark: #000000;
JSON
{
  "hex": "#ab81ec",
  "rgb": {
    "r": 171,
    "g": 129,
    "b": 236
  },
  "hsl": {
    "h": 263.551,
    "s": 73.793,
    "l": 71.569
  },
  "oklch": {
    "l": 0.68786,
    "c": 0.157,
    "h": 300.4
  },
  "luminance": 0.30415
}

Semantic roles & 50–950 ramp

primary
#AB81EC
secondary
#E7F2D7
accent
#D61088
background
#FCFAFE
surface
#F8F4FD
border
#D1CED5
text
#130F17
muted
#827F85

Preview Lab

Preview with #AB81EC

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

Preview Lab → · Contrast checker → · Palette generator →

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