#8166B5#8166B5

#8166B5 is a mid, vivid violet. Relative luminance 0.175; OKLCH L 57.1% C 0.121 H 298.2°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#8166B5
RGBrgb(129, 102, 181)
HSLhsl(261, 35%, 55%)
HSVhsv(261, 44%, 71%)
CMYKcmyk(28.7%, 43.6%, 0%, 29%)
CIE-LABlab(48.89, 27.96, -38.10)
CIE-LCHlch(48.89, 47.26, 306.27°)
OKLaboklab(57.07% 0.0573 -0.1067)
OKLCHoklch(57.07% 0.121 298.2)
XYZxyz(22.1432, 17.5059, 45.9195)
Luminance0.1751 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8166B5 #9AB566
analogous
#6672B5 #8166B5 #A866B5
triadic
#8166B5 #B58166 #66B581
tetradic
#8166B5 #B56672 #9AB566 #66B5A8
square
#8166B5 #B56672 #9AB566 #66B5A8
split-complementary
#8166B5 #B5A866 #72B566
monochromatic
#47346C #634895 #8166B5 #A38FC9 #C5B8DD

Accessibility & contrast

On white

4.67
#8166B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#8166B5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8166B5
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8166B5#FFFFFF#000000##FFFFFF
##8166B51.004.674.504.67
#FFFFFF4.671.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F74B8
Deuteranopia (green-blind)
#5473B3
Tritanopia (blue-blind)
#767485
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8166b5;
/* rgb */ color: rgb(129, 102, 181);
/* oklch */ color: oklch(57.1% 0.121 298.2);
Tailwind
colors: {
  custom: {
    50: '#a792cb',
    500: '#8166b5',
    950: '#000000',
  },
}
SCSS
$custom: #8166b5;
$custom-light: #a792cb;
$custom-dark: #000000;
JSON
{
  "hex": "#8166b5",
  "rgb": {
    "r": 129,
    "g": 102,
    "b": 181
  },
  "hsl": {
    "h": 260.506,
    "s": 34.802,
    "l": 55.49
  },
  "oklch": {
    "l": 0.57066,
    "c": 0.1211,
    "h": 298.2
  },
  "luminance": 0.17506
}

Semantic roles & 50–950 ramp

primary
#8166B5
secondary
#C1CCAB
accent
#CB5DA5
background
#FAF9FC
surface
#F4F1F8
border
#CECBD1
text
#100D13
muted
#7F7E82

Preview Lab

Preview with #8166B5

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

Preview Lab → · Contrast checker → · Palette generator →

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