#8166B7#8166B7

#8166B7 is a mid, vivid violet. Relative luminance 0.176; OKLCH L 57.2% C 0.124 H 297.7°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#8166B7
RGBrgb(129, 102, 183)
HSLhsl(260, 36%, 56%)
HSVhsv(260, 44%, 72%)
CMYKcmyk(29.5%, 44.3%, 0%, 28.2%)
CIE-LABlab(48.99, 28.47, -39.10)
CIE-LCHlch(48.99, 48.37, 306.06°)
OKLaboklab(57.18% 0.0576 -0.1096)
OKLCHoklch(57.18% 0.124 297.7)
XYZxyz(22.3498, 17.5885, 47.0080)
Luminance0.1759 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8166B7 #9CB766
analogous
#6673B7 #8166B7 #A966B7
triadic
#8166B7 #B78166 #66B781
tetradic
#8166B7 #B76673 #9CB766 #66B7A9
square
#8166B7 #B76673 #9CB766 #66B7A9
split-complementary
#8166B7 #B7A966 #73B766
monochromatic
#48346F #624898 #8166B7 #A390CB #C6B9DE

Accessibility & contrast

On white

4.65
#8166B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#8166B7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8166B7
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8166B7#FFFFFF#000000##FFFFFF
##8166B71.004.654.524.65
#FFFFFF4.651.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E75BA
Deuteranopia (green-blind)
#5374B5
Tritanopia (blue-blind)
#767586
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8166b7;
/* rgb */ color: rgb(129, 102, 183);
/* oklch */ color: oklch(57.2% 0.124 297.7);
Tailwind
colors: {
  custom: {
    50: '#a892cd',
    500: '#8166b7',
    950: '#000000',
  },
}
SCSS
$custom: #8166b7;
$custom-light: #a892cd;
$custom-dark: #000000;
JSON
{
  "hex": "#8166b7",
  "rgb": {
    "r": 129,
    "g": 102,
    "b": 183
  },
  "hsl": {
    "h": 260,
    "s": 36,
    "l": 55.882
  },
  "oklch": {
    "l": 0.57176,
    "c": 0.12382,
    "h": 297.7
  },
  "luminance": 0.17589
}

Semantic roles & 50–950 ramp

primary
#8166B7
secondary
#C2CDAC
accent
#CC5CA7
background
#FAF9FC
surface
#F4F1F9
border
#CECBD2
text
#100D13
muted
#7F7E82

Preview Lab

Preview with #8166B7

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

Preview Lab → · Contrast checker → · Palette generator →

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