#8166EB#8166EB

#8166EB is a mid, vivid violet. Relative luminance 0.202; OKLCH L 60.4% C 0.192 H 288.6°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#8166EB
RGBrgb(129, 102, 235)
HSLhsl(252, 77%, 66%)
HSVhsv(252, 57%, 92%)
CMYKcmyk(45.1%, 56.6%, 0%, 7.8%)
CIE-LABlab(52.03, 42.60, -63.90)
CIE-LCHlch(52.03, 76.80, 303.69°)
OKLaboklab(60.41% 0.0615 -0.1823)
OKLCHoklch(60.41% 0.192 288.6)
XYZxyz(28.7958, 20.1669, 80.9565)
Luminance0.2017 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8166EB #D0EB66
analogous
#668DEB #8166EB #C366EB
triadic
#8166EB #EB8166 #66EB81
tetradic
#8166EB #EB668D #D0EB66 #66EBC3
square
#8166EB #EB668D #D0EB66 #66EBC3
split-complementary
#8166EB #EBC366 #8DEB66
monochromatic
#3A19BE #5430E4 #8166EB #AE9CF2 #DAD2F9

Accessibility & contrast

On white

4.17
#8166EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#8166EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8166EB
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8166EB#FFFFFF#000000##000000
##8166EB1.004.175.035.03
#FFFFFF4.171.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0A7FEF
Deuteranopia (green-blind)
#1179E8
Tritanopia (blue-blind)
#60849F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8166eb;
/* rgb */ color: rgb(129, 102, 235);
/* oklch */ color: oklch(60.4% 0.192 288.6);
Tailwind
colors: {
  custom: {
    50: '#ac92f2',
    500: '#8166eb',
    950: '#000000',
  },
}
SCSS
$custom: #8166eb;
$custom-light: #ac92f2;
$custom-dark: #000000;
JSON
{
  "hex": "#8166eb",
  "rgb": {
    "r": 129,
    "g": 102,
    "b": 235
  },
  "hsl": {
    "h": 252.18,
    "s": 76.879,
    "l": 66.078
  },
  "oklch": {
    "l": 0.60413,
    "c": 0.19236,
    "h": 288.6
  },
  "luminance": 0.20168
}

Semantic roles & 50–950 ramp

primary
#8166EB
secondary
#E3ECC1
accent
#D90CB0
background
#FBF9FE
surface
#F6F1FD
border
#D0CBD5
text
#110D17
muted
#807E85

Preview Lab

Preview with #8166EB

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

Preview Lab → · Contrast checker → · Palette generator →

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