#8166D2#8166D2

#8166D2 is a mid, vivid violet. Relative luminance 0.188; OKLCH L 58.8% C 0.160 H 292.3°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#8166D2
RGBrgb(129, 102, 210)
HSLhsl(255, 55%, 61%)
HSVhsv(255, 51%, 82%)
CMYKcmyk(38.6%, 51.4%, 0%, 17.6%)
CIE-LABlab(50.48, 35.66, -52.26)
CIE-LCHlch(50.48, 63.27, 304.31°)
OKLaboklab(58.77% 0.0607 -0.1481)
OKLCHoklch(58.77% 0.16 292.3)
XYZxyz(25.4344, 18.8224, 63.2533)
Luminance0.1882 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8166D2 #B7D266
analogous
#6681D2 #8166D2 #B766D2
triadic
#8166D2 #D28166 #66D281
tetradic
#8166D2 #D26681 #B7D266 #66D2B7
square
#8166D2 #D26681 #B7D266 #66D2B7
split-complementary
#8166D2 #D2B766 #81D266
monochromatic
#452B93 #5B39C2 #8166D2 #A895E0 #CFC5EE

Accessibility & contrast

On white

4.41
#8166D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#8166D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8166D2
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8166D2#FFFFFF#000000##000000
##8166D21.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#397AD6
Deuteranopia (green-blind)
#3E76D0
Tritanopia (blue-blind)
#6C7C92
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #8166d2;
/* rgb */ color: rgb(129, 102, 210);
/* oklch */ color: oklch(58.8% 0.160 292.3);
Tailwind
colors: {
  custom: {
    50: '#aa92e0',
    500: '#8166d2',
    950: '#000000',
  },
}
SCSS
$custom: #8166d2;
$custom-light: #aa92e0;
$custom-dark: #000000;
JSON
{
  "hex": "#8166d2",
  "rgb": {
    "r": 129,
    "g": 102,
    "b": 210
  },
  "hsl": {
    "h": 255,
    "s": 54.545,
    "l": 61.176
  },
  "oklch": {
    "l": 0.58771,
    "c": 0.16003,
    "h": 292.3
  },
  "luminance": 0.18823
}

Semantic roles & 50–950 ramp

primary
#8166D2
secondary
#D4DEB6
accent
#C2239A
background
#FAF9FD
surface
#F4F1FB
border
#CECBD4
text
#100D15
muted
#7F7E83

Preview Lab

Preview with #8166D2

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

Preview Lab → · Contrast checker → · Palette generator →

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