#816AEB#816AEB

#816AEB is a mid, vivid violet. Relative luminance 0.210; OKLCH L 61.1% C 0.187 H 287.7°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#816AEB
RGBrgb(129, 106, 235)
HSLhsl(251, 76%, 67%)
HSVhsv(251, 55%, 92%)
CMYKcmyk(45.1%, 54.9%, 0%, 7.8%)
CIE-LABlab(52.92, 40.31, -62.46)
CIE-LCHlch(52.92, 74.34, 302.84°)
OKLaboklab(61.07% 0.057 -0.178)
OKLCHoklch(61.07% 0.187 287.7)
XYZxyz(29.1984, 20.9722, 81.0907)
Luminance0.2097 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#816AEB #D4EB6A
analogous
#6A94EB #816AEB #C26AEB
triadic
#816AEB #EB816A #6AEB81
tetradic
#816AEB #EB6A94 #D4EB6A #6AEBC2
square
#816AEB #EB6A94 #D4EB6A #6AEBC2
split-complementary
#816AEB #EBC26A #94EB6A
monochromatic
#381AC1 #5334E4 #816AEB #AFA0F2 #DCD6F9

Accessibility & contrast

On white

4.04
#816AEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#816AEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #816AEB
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##816AEB#FFFFFF#000000##000000
##816AEB1.004.045.195.19
#FFFFFF4.041.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#2181EF
Deuteranopia (green-blind)
#217BE8
Tritanopia (blue-blind)
#6086A0
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #816aeb;
/* rgb */ color: rgb(129, 106, 235);
/* oklch */ color: oklch(61.1% 0.187 287.7);
Tailwind
colors: {
  custom: {
    50: '#ac95f2',
    500: '#816aeb',
    950: '#000000',
  },
}
SCSS
$custom: #816aeb;
$custom-light: #ac95f2;
$custom-dark: #000000;
JSON
{
  "hex": "#816aeb",
  "rgb": {
    "r": 129,
    "g": 106,
    "b": 235
  },
  "hsl": {
    "h": 250.698,
    "s": 76.331,
    "l": 66.863
  },
  "oklch": {
    "l": 0.61074,
    "c": 0.18692,
    "h": 287.7
  },
  "luminance": 0.20973
}

Semantic roles & 50–950 ramp

primary
#816AEB
secondary
#E6EDC4
accent
#D90DB4
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#110D17
muted
#807E85

Preview Lab

Preview with #816AEB

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

Preview Lab → · Contrast checker → · Palette generator →

#816AEB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva