#8166CE#8166CE

#8166CE is a mid, vivid violet. Relative luminance 0.186; OKLCH L 58.5% C 0.155 H 293.0°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#8166CE
RGBrgb(129, 102, 206)
HSLhsl(256, 51%, 60%)
HSVhsv(256, 50%, 81%)
CMYKcmyk(37.4%, 50.5%, 0%, 19.2%)
CIE-LABlab(50.25, 34.57, -50.35)
CIE-LCHlch(50.25, 61.08, 304.47°)
OKLaboklab(58.52% 0.0604 -0.1425)
OKLCHoklch(58.52% 0.155 293)
XYZxyz(24.9423, 18.6255, 60.6615)
Luminance0.1863 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8166CE #B3CE66
analogous
#667FCE #8166CE #B566CE
triadic
#8166CE #CE8166 #66CE81
tetradic
#8166CE #CE667F #B3CE66 #66CEB5
square
#8166CE #CE667F #B3CE66 #66CEB5
split-complementary
#8166CE #CEB566 #7FCE66
monochromatic
#462D8D #5D3CBB #8166CE #A794DD #CDC3EC

Accessibility & contrast

On white

4.44
#8166CE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#8166CE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8166CE
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8166CE#FFFFFF#000000##000000
##8166CE1.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D79D2
Deuteranopia (green-blind)
#4276CC
Tritanopia (blue-blind)
#6E7B90
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #8166ce;
/* rgb */ color: rgb(129, 102, 206);
/* oklch */ color: oklch(58.5% 0.155 293.0);
Tailwind
colors: {
  custom: {
    50: '#a992dd',
    500: '#8166ce',
    950: '#000000',
  },
}
SCSS
$custom: #8166ce;
$custom-light: #a992dd;
$custom-dark: #000000;
JSON
{
  "hex": "#8166ce",
  "rgb": {
    "r": 129,
    "g": 102,
    "b": 206
  },
  "hsl": {
    "h": 255.577,
    "s": 51.485,
    "l": 60.392
  },
  "oklch": {
    "l": 0.58523,
    "c": 0.15473,
    "h": 293
  },
  "luminance": 0.18626
}

Semantic roles & 50–950 ramp

primary
#8166CE
secondary
#D1DCB4
accent
#BF2797
background
#FAF9FD
surface
#F4F1FB
border
#CECBD4
text
#100D15
muted
#7F7E83

Preview Lab

Preview with #8166CE

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

Preview Lab → · Contrast checker → · Palette generator →

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