#8166EA#8166EA

#8166EA is a mid, vivid violet. Relative luminance 0.201; OKLCH L 60.3% C 0.191 H 288.8°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#8166EA
RGBrgb(129, 102, 234)
HSLhsl(252, 76%, 66%)
HSVhsv(252, 56%, 92%)
CMYKcmyk(44.9%, 56.4%, 0%, 8.2%)
CIE-LABlab(51.96, 42.32, -63.45)
CIE-LCHlch(51.96, 76.27, 303.70°)
OKLaboklab(60.35% 0.0615 -0.1809)
OKLCHoklch(60.35% 0.191 288.8)
XYZxyz(28.6517, 20.1093, 80.1978)
Luminance0.2011 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8166EA #CFEA66
analogous
#668DEA #8166EA #C366EA
triadic
#8166EA #EA8166 #66EA81
tetradic
#8166EA #EA668D #CFEA66 #66EAC3
square
#8166EA #EA668D #CFEA66 #66EAC3
split-complementary
#8166EA #EAC366 #8DEA66
monochromatic
#3B1ABC #5530E3 #8166EA #AD9CF1 #DAD2F9

Accessibility & contrast

On white

4.18
#8166EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#8166EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8166EA
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8166EA#FFFFFF#000000##000000
##8166EA1.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0F7FEE
Deuteranopia (green-blind)
#1579E7
Tritanopia (blue-blind)
#61839E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8166ea;
/* rgb */ color: rgb(129, 102, 234);
/* oklch */ color: oklch(60.3% 0.191 288.8);
Tailwind
colors: {
  custom: {
    50: '#ac92f1',
    500: '#8166ea',
    950: '#000000',
  },
}
SCSS
$custom: #8166ea;
$custom-light: #ac92f1;
$custom-dark: #000000;
JSON
{
  "hex": "#8166ea",
  "rgb": {
    "r": 129,
    "g": 102,
    "b": 234
  },
  "hsl": {
    "h": 252.273,
    "s": 75.862,
    "l": 65.882
  },
  "oklch": {
    "l": 0.60345,
    "c": 0.19109,
    "h": 288.8
  },
  "luminance": 0.2011
}

Semantic roles & 50–950 ramp

primary
#8166EA
secondary
#E3ECC0
accent
#D80DAF
background
#FBF9FE
surface
#F6F1FD
border
#D0CBD5
text
#110D17
muted
#807E85

Preview Lab

Preview with #8166EA

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

Preview Lab → · Contrast checker → · Palette generator →

#8166EA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva