#8166E5#8166E5

#8166E5 is a mid, vivid violet. Relative luminance 0.198; OKLCH L 60.0% C 0.185 H 289.4°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#8166E5
RGBrgb(129, 102, 229)
HSLhsl(253, 71%, 65%)
HSVhsv(253, 55%, 90%)
CMYKcmyk(43.7%, 55.5%, 0%, 10.2%)
CIE-LABlab(51.64, 40.92, -61.15)
CIE-LCHlch(51.64, 73.58, 303.79°)
OKLaboklab(60.01% 0.0614 -0.1742)
OKLCHoklch(60.01% 0.185 289.4)
XYZxyz(27.9435, 19.8260, 76.4680)
Luminance0.1983 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8166E5 #CAE566
analogous
#668AE5 #8166E5 #C166E5
triadic
#8166E5 #E58166 #66E581
tetradic
#8166E5 #E5668A #CAE566 #66E5C1
square
#8166E5 #E5668A #CAE566 #66E5C1
split-complementary
#8166E5 #E5C166 #8AE566
monochromatic
#3E1EB2 #5632DC #8166E5 #AC9AEE #D7CFF7

Accessibility & contrast

On white

4.23
#8166E5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#8166E5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8166E5
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8166E5#FFFFFF#000000##000000
##8166E51.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#1E7EE9
Deuteranopia (green-blind)
#2278E2
Tritanopia (blue-blind)
#63829C
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #8166e5;
/* rgb */ color: rgb(129, 102, 229);
/* oklch */ color: oklch(60.0% 0.185 289.4);
Tailwind
colors: {
  custom: {
    50: '#ab92ee',
    500: '#8166e5',
    950: '#000000',
  },
}
SCSS
$custom: #8166e5;
$custom-light: #ab92ee;
$custom-dark: #000000;
JSON
{
  "hex": "#8166e5",
  "rgb": {
    "r": 129,
    "g": 102,
    "b": 229
  },
  "hsl": {
    "h": 252.756,
    "s": 70.95,
    "l": 64.902
  },
  "oklch": {
    "l": 0.60006,
    "c": 0.18471,
    "h": 289.4
  },
  "luminance": 0.19827
}

Semantic roles & 50–950 ramp

primary
#8166E5
secondary
#E0E9BE
accent
#D313AA
background
#FBF9FE
surface
#F6F1FD
border
#D0CBD5
text
#110D16
muted
#807E84

Preview Lab

Preview with #8166E5

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

Preview Lab → · Contrast checker → · Palette generator →

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