#AB81EB#AB81EB

#AB81EB is a light, vivid violet. Relative luminance 0.304; OKLCH L 68.7% C 0.156 H 300.7°. Best body text is #000000 at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#AB81EB
RGBrgb(171, 129, 235)
HSLhsl(264, 73%, 71%)
HSVhsv(264, 45%, 92%)
CMYKcmyk(27.2%, 45.1%, 0%, 7.8%)
CIE-LABlab(61.96, 37.52, -47.81)
CIE-LCHlch(61.96, 60.77, 308.13°)
OKLaboklab(68.73% 0.0794 -0.134)
OKLCHoklch(68.73% 0.156 300.7)
XYZxyz(39.6368, 30.3564, 82.3523)
Luminance0.3036 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB81EB #C1EB81
analogous
#818CEB #AB81EB #E081EB
triadic
#AB81EB #EBAB81 #81EBAB
tetradic
#AB81EB #EB818C #C1EB81 #81EBE0
square
#AB81EB #EB818C #C1EB81 #81EBE0
split-complementary
#AB81EB #EBE081 #8CEB81
monochromatic
#6721D1 #884CE3 #AB81EB #CEB6F3 #EDE5FB

Accessibility & contrast

On white

2.97
#AB81EB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.07
#AB81EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB81EB
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB81EB#FFFFFF#000000##000000
##AB81EB1.002.977.077.07
#FFFFFF2.971.0021.0021.00
#0000007.0721.001.001.00
##0000007.0721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ab81eb;
/* rgb */ color: rgb(171, 129, 235);
/* oklch */ color: oklch(68.7% 0.156 300.7);
Tailwind
colors: {
  custom: {
    50: '#c6a6f2',
    500: '#ab81eb',
    950: '#000000',
  },
}
SCSS
$custom: #ab81eb;
$custom-light: #c6a6f2;
$custom-dark: #000000;
JSON
{
  "hex": "#ab81eb",
  "rgb": {
    "r": 171,
    "g": 129,
    "b": 235
  },
  "hsl": {
    "h": 263.774,
    "s": 72.603,
    "l": 71.373
  },
  "oklch": {
    "l": 0.68733,
    "c": 0.15574,
    "h": 300.7
  },
  "luminance": 0.30357
}

Semantic roles & 50–950 ramp

primary
#AB81EB
secondary
#E7F2D6
accent
#D51187
background
#FCFAFE
surface
#F8F4FD
border
#D1CED5
text
#130F17
muted
#827F85

Preview Lab

Preview with #AB81EB

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

Preview Lab → · Contrast checker → · Palette generator →

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