#8166DC#8166DC

#8166DC is a mid, vivid violet. Relative luminance 0.193; OKLCH L 59.4% C 0.173 H 290.7°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#8166DC
RGBrgb(129, 102, 220)
HSLhsl(254, 63%, 63%)
HSVhsv(254, 54%, 86%)
CMYKcmyk(41.4%, 53.6%, 0%, 13.7%)
CIE-LABlab(51.08, 38.41, -56.98)
CIE-LCHlch(51.08, 68.72, 303.98°)
OKLaboklab(59.41% 0.0612 -0.1619)
OKLCHoklch(59.41% 0.173 290.7)
XYZxyz(26.7193, 19.3364, 70.0208)
Luminance0.1934 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8166DC #C1DC66
analogous
#6686DC #8166DC #BC66DC
triadic
#8166DC #DC8166 #66DC81
tetradic
#8166DC #DC6686 #C1DC66 #66DCBC
square
#8166DC #DC6686 #C1DC66 #66DCBC
split-complementary
#8166DC #DCBC66 #86DC66
monochromatic
#4225A2 #5834D1 #8166DC #AA98E7 #D3CAF3

Accessibility & contrast

On white

4.31
#8166DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#8166DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8166DC
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8166DC#FFFFFF#000000##000000
##8166DC1.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2D7CE0
Deuteranopia (green-blind)
#3277D9
Tritanopia (blue-blind)
#687F97
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #8166dc;
/* rgb */ color: rgb(129, 102, 220);
/* oklch */ color: oklch(59.4% 0.173 290.7);
Tailwind
colors: {
  custom: {
    50: '#ab92e7',
    500: '#8166dc',
    950: '#000000',
  },
}
SCSS
$custom: #8166dc;
$custom-light: #ab92e7;
$custom-dark: #000000;
JSON
{
  "hex": "#8166dc",
  "rgb": {
    "r": 129,
    "g": 102,
    "b": 220
  },
  "hsl": {
    "h": 253.729,
    "s": 62.766,
    "l": 63.137
  },
  "oklch": {
    "l": 0.5941,
    "c": 0.17311,
    "h": 290.7
  },
  "luminance": 0.19337
}

Semantic roles & 50–950 ramp

primary
#8166DC
secondary
#DAE4BA
accent
#CB1BA2
background
#FAF9FE
surface
#F4F1FD
border
#CECBD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #8166DC

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

Preview Lab → · Contrast checker → · Palette generator →

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