#8166CC#8166CC

#8166CC is a mid, vivid violet. Relative luminance 0.185; OKLCH L 58.4% C 0.152 H 293.3°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#8166CC
RGBrgb(129, 102, 204)
HSLhsl(256, 50%, 60%)
HSVhsv(256, 50%, 80%)
CMYKcmyk(36.8%, 50%, 0%, 20%)
CIE-LABlab(50.13, 34.03, -49.39)
CIE-LCHlch(50.13, 59.98, 304.56°)
OKLaboklab(58.4% 0.0602 -0.1397)
OKLCHoklch(58.4% 0.152 293.3)
XYZxyz(24.7009, 18.5290, 59.3901)
Luminance0.1853 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8166CC #B1CC66
analogous
#667ECC #8166CC #B466CC
triadic
#8166CC #CC8166 #66CC81
tetradic
#8166CC #CC667E #B1CC66 #66CCB4
square
#8166CC #CC667E #B1CC66 #66CCB4
split-complementary
#8166CC #CCB466 #7ECC66
monochromatic
#462E8A #5E3DB8 #8166CC #A794DB #CDC2EB

Accessibility & contrast

On white

4.46
#8166CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#8166CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8166CC
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8166CC#FFFFFF#000000##000000
##8166CC1.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F79D0
Deuteranopia (green-blind)
#4475CA
Tritanopia (blue-blind)
#6F7A8F
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #8166cc;
/* rgb */ color: rgb(129, 102, 204);
/* oklch */ color: oklch(58.4% 0.152 293.3);
Tailwind
colors: {
  custom: {
    50: '#a992dc',
    500: '#8166cc',
    950: '#000000',
  },
}
SCSS
$custom: #8166cc;
$custom-light: #a992dc;
$custom-dark: #000000;
JSON
{
  "hex": "#8166cc",
  "rgb": {
    "r": 129,
    "g": 102,
    "b": 204
  },
  "hsl": {
    "h": 255.882,
    "s": 50,
    "l": 60
  },
  "oklch": {
    "l": 0.584,
    "c": 0.15208,
    "h": 293.3
  },
  "luminance": 0.1853
}

Semantic roles & 50–950 ramp

primary
#8166CC
secondary
#D0DBB3
accent
#DA4EB5
background
#FAF9FD
surface
#F4F1FB
border
#CECBD4
text
#100D15
muted
#7F7E83

Preview Lab

Preview with #8166CC

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

Preview Lab → · Contrast checker → · Palette generator →

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