#8166E8#8166E8

#8166E8 is a mid, vivid violet. Relative luminance 0.200; OKLCH L 60.2% C 0.189 H 289.0°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#8166E8
RGBrgb(129, 102, 232)
HSLhsl(252, 74%, 65%)
HSVhsv(252, 56%, 91%)
CMYKcmyk(44.4%, 56%, 0%, 9%)
CIE-LABlab(51.83, 41.76, -62.53)
CIE-LCHlch(51.83, 75.19, 303.74°)
OKLaboklab(60.21% 0.0615 -0.1782)
OKLCHoklch(60.21% 0.189 289)
XYZxyz(28.3660, 19.9950, 78.6931)
Luminance0.2000 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8166E8 #CDE866
analogous
#668CE8 #8166E8 #C266E8
triadic
#8166E8 #E88166 #66E881
tetradic
#8166E8 #E8668C #CDE866 #66E8C2
square
#8166E8 #E8668C #CDE866 #66E8C2
split-complementary
#8166E8 #E8C266 #8CE866
monochromatic
#3C1CB8 #5531E0 #8166E8 #AD9BF0 #D9D0F8

Accessibility & contrast

On white

4.20
#8166E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#8166E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8166E8
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8166E8#FFFFFF#000000##000000
##8166E81.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#167EEC
Deuteranopia (green-blind)
#1B78E5
Tritanopia (blue-blind)
#62839D
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8166e8;
/* rgb */ color: rgb(129, 102, 232);
/* oklch */ color: oklch(60.2% 0.189 289.0);
Tailwind
colors: {
  custom: {
    50: '#ac92f0',
    500: '#8166e8',
    950: '#000000',
  },
}
SCSS
$custom: #8166e8;
$custom-light: #ac92f0;
$custom-dark: #000000;
JSON
{
  "hex": "#8166e8",
  "rgb": {
    "r": 129,
    "g": 102,
    "b": 232
  },
  "hsl": {
    "h": 252.462,
    "s": 73.864,
    "l": 65.49
  },
  "oklch": {
    "l": 0.60208,
    "c": 0.18854,
    "h": 289
  },
  "luminance": 0.19996
}

Semantic roles & 50–950 ramp

primary
#8166E8
secondary
#E2EBBF
accent
#D610AD
background
#FBF9FE
surface
#F6F1FD
border
#D0CBD5
text
#110D17
muted
#807E85

Preview Lab

Preview with #8166E8

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

Preview Lab → · Contrast checker → · Palette generator →

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