#8166E4#8166E4

#8166E4 is a mid, vivid violet. Relative luminance 0.198; OKLCH L 59.9% C 0.183 H 289.6°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#8166E4
RGBrgb(129, 102, 228)
HSLhsl(253, 70%, 65%)
HSVhsv(253, 55%, 89%)
CMYKcmyk(43.4%, 55.3%, 0%, 10.6%)
CIE-LABlab(51.58, 40.64, -60.69)
CIE-LCHlch(51.58, 73.04, 303.80°)
OKLaboklab(59.94% 0.0614 -0.1728)
OKLCHoklch(59.94% 0.183 289.6)
XYZxyz(27.8043, 19.7703, 75.7348)
Luminance0.1977 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8166E4 #C9E466
analogous
#668AE4 #8166E4 #C066E4
triadic
#8166E4 #E48166 #66E481
tetradic
#8166E4 #E4668A #C9E466 #66E4C0
square
#8166E4 #E4668A #C9E466 #66E4C0
split-complementary
#8166E4 #E4C066 #8AE466
monochromatic
#3E1FB0 #5632DB #8166E4 #AC9AED #D7CEF6

Accessibility & contrast

On white

4.24
#8166E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#8166E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8166E4
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8166E4#FFFFFF#000000##000000
##8166E41.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#207DE8
Deuteranopia (green-blind)
#2578E1
Tritanopia (blue-blind)
#64819B
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #8166e4;
/* rgb */ color: rgb(129, 102, 228);
/* oklch */ color: oklch(59.9% 0.183 289.6);
Tailwind
colors: {
  custom: {
    50: '#ab92ed',
    500: '#8166e4',
    950: '#000000',
  },
}
SCSS
$custom: #8166e4;
$custom-light: #ab92ed;
$custom-dark: #000000;
JSON
{
  "hex": "#8166e4",
  "rgb": {
    "r": 129,
    "g": 102,
    "b": 228
  },
  "hsl": {
    "h": 252.857,
    "s": 70,
    "l": 64.706
  },
  "oklch": {
    "l": 0.59939,
    "c": 0.18343,
    "h": 289.6
  },
  "luminance": 0.19771
}

Semantic roles & 50–950 ramp

primary
#8166E4
secondary
#DFE9BD
accent
#D214A9
background
#FBF9FE
surface
#F6F1FD
border
#D0CBD5
text
#110D16
muted
#807E84

Preview Lab

Preview with #8166E4

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

Preview Lab → · Contrast checker → · Palette generator →

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