#8166B2#8166B2

#8166B2 is a mid, moderate violet. Relative luminance 0.174; OKLCH L 56.9% C 0.117 H 299.0°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#8166B2
RGBrgb(129, 102, 178)
HSLhsl(261, 33%, 55%)
HSVhsv(261, 43%, 70%)
CMYKcmyk(27.5%, 42.7%, 0%, 30.2%)
CIE-LABlab(48.74, 27.19, -36.59)
CIE-LCHlch(48.74, 45.59, 306.61°)
OKLaboklab(56.9% 0.0568 -0.1023)
OKLCHoklch(56.9% 0.117 299)
XYZxyz(21.8387, 17.3841, 44.3158)
Luminance0.1738 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8166B2 #97B266
analogous
#6671B2 #8166B2 #A766B2
triadic
#8166B2 #B28166 #66B281
tetradic
#8166B2 #B26671 #97B266 #66B2A7
square
#8166B2 #B26671 #97B266 #66B2A7
split-complementary
#8166B2 #B2A766 #71B266
monochromatic
#473569 #634992 #8166B2 #A38FC6 #C4B7DB

Accessibility & contrast

On white

4.69
#8166B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#8166B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8166B2
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8166B2#FFFFFF#000000##FFFFFF
##8166B21.004.694.484.69
#FFFFFF4.691.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5174B5
Deuteranopia (green-blind)
#5673B0
Tritanopia (blue-blind)
#777383
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8166b2;
/* rgb */ color: rgb(129, 102, 178);
/* oklch */ color: oklch(56.9% 0.117 299.0);
Tailwind
colors: {
  custom: {
    50: '#a792c9',
    500: '#8166b2',
    950: '#000000',
  },
}
SCSS
$custom: #8166b2;
$custom-light: #a792c9;
$custom-dark: #000000;
JSON
{
  "hex": "#8166b2",
  "rgb": {
    "r": 129,
    "g": 102,
    "b": 178
  },
  "hsl": {
    "h": 261.316,
    "s": 33.043,
    "l": 54.902
  },
  "oklch": {
    "l": 0.56903,
    "c": 0.11701,
    "h": 299
  },
  "luminance": 0.17384
}

Semantic roles & 50–950 ramp

primary
#8166B2
secondary
#BFCAAA
accent
#C95FA3
background
#FAF9FC
surface
#F4F1F8
border
#CECBD1
text
#100D13
muted
#7F7E82

Preview Lab

Preview with #8166B2

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

Preview Lab → · Contrast checker → · Palette generator →

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