#8166D7#8166D7

#8166D7 is a mid, vivid violet. Relative luminance 0.191; OKLCH L 59.1% C 0.167 H 291.5°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#8166D7
RGBrgb(129, 102, 215)
HSLhsl(254, 59%, 62%)
HSVhsv(254, 53%, 84%)
CMYKcmyk(40%, 52.6%, 0%, 15.7%)
CIE-LABlab(50.78, 37.03, -54.63)
CIE-LCHlch(50.78, 66.00, 304.13°)
OKLaboklab(59.09% 0.061 -0.155)
OKLCHoklch(59.09% 0.167 291.5)
XYZxyz(26.0670, 19.0754, 66.5853)
Luminance0.1908 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8166D7 #BCD766
analogous
#6684D7 #8166D7 #B966D7
triadic
#8166D7 #D78166 #66D781
tetradic
#8166D7 #D76684 #BCD766 #66D7B9
square
#8166D7 #D76684 #BCD766 #66D7B9
split-complementary
#8166D7 #D7B966 #84D766
monochromatic
#44289A #5935CA #8166D7 #A997E4 #D1C7F0

Accessibility & contrast

On white

4.36
#8166D7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.82
#8166D7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8166D7
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8166D7#FFFFFF#000000##000000
##8166D71.004.364.824.82
#FFFFFF4.361.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#347BDB
Deuteranopia (green-blind)
#3877D4
Tritanopia (blue-blind)
#6A7D95
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #8166d7;
/* rgb */ color: rgb(129, 102, 215);
/* oklch */ color: oklch(59.1% 0.167 291.5);
Tailwind
colors: {
  custom: {
    50: '#aa92e4',
    500: '#8166d7',
    950: '#000000',
  },
}
SCSS
$custom: #8166d7;
$custom-light: #aa92e4;
$custom-dark: #000000;
JSON
{
  "hex": "#8166d7",
  "rgb": {
    "r": 129,
    "g": 102,
    "b": 215
  },
  "hsl": {
    "h": 254.336,
    "s": 58.549,
    "l": 62.157
  },
  "oklch": {
    "l": 0.59087,
    "c": 0.16659,
    "h": 291.5
  },
  "luminance": 0.19076
}

Semantic roles & 50–950 ramp

primary
#8166D7
secondary
#D7E1B8
accent
#C61F9E
background
#FAF9FE
surface
#F4F1FC
border
#CECBD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #8166D7

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

Preview Lab → · Contrast checker → · Palette generator →

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