#8166E6#8166E6

#8166E6 is a mid, vivid violet. Relative luminance 0.199; OKLCH L 60.1% C 0.186 H 289.3°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#8166E6
RGBrgb(129, 102, 230)
HSLhsl(253, 72%, 65%)
HSVhsv(253, 56%, 90%)
CMYKcmyk(43.9%, 55.7%, 0%, 9.8%)
CIE-LABlab(51.70, 41.20, -61.61)
CIE-LCHlch(51.70, 74.12, 303.77°)
OKLaboklab(60.07% 0.0614 -0.1756)
OKLCHoklch(60.07% 0.186 289.3)
XYZxyz(28.0835, 19.8820, 77.2055)
Luminance0.1988 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8166E6 #CBE666
analogous
#668BE6 #8166E6 #C166E6
triadic
#8166E6 #E68166 #66E681
tetradic
#8166E6 #E6668B #CBE666 #66E6C1
square
#8166E6 #E6668B #CBE666 #66E6C1
split-complementary
#8166E6 #E6C166 #8BE666
monochromatic
#3D1DB4 #5631DD #8166E6 #AC9BEF #D8CFF7

Accessibility & contrast

On white

4.22
#8166E6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#8166E6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8166E6
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8166E6#FFFFFF#000000##000000
##8166E61.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#1B7EEA
Deuteranopia (green-blind)
#2078E3
Tritanopia (blue-blind)
#63829C
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #8166e6;
/* rgb */ color: rgb(129, 102, 230);
/* oklch */ color: oklch(60.1% 0.186 289.3);
Tailwind
colors: {
  custom: {
    50: '#ac92ef',
    500: '#8166e6',
    950: '#000000',
  },
}
SCSS
$custom: #8166e6;
$custom-light: #ac92ef;
$custom-dark: #000000;
JSON
{
  "hex": "#8166e6",
  "rgb": {
    "r": 129,
    "g": 102,
    "b": 230
  },
  "hsl": {
    "h": 252.656,
    "s": 71.91,
    "l": 65.098
  },
  "oklch": {
    "l": 0.60073,
    "c": 0.18599,
    "h": 289.3
  },
  "luminance": 0.19883
}

Semantic roles & 50–950 ramp

primary
#8166E6
secondary
#E0EABE
accent
#D412AB
background
#FBF9FE
surface
#F6F1FD
border
#D0CBD5
text
#110D16
muted
#807E84

Preview Lab

Preview with #8166E6

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

Preview Lab → · Contrast checker → · Palette generator →

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