#8166BC#8166BC

#8166BC is a mid, vivid violet. Relative luminance 0.178; OKLCH L 57.5% C 0.131 H 296.5°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#8166BC
RGBrgb(129, 102, 188)
HSLhsl(259, 39%, 57%)
HSVhsv(259, 46%, 74%)
CMYKcmyk(31.4%, 45.7%, 0%, 26.3%)
CIE-LABlab(49.25, 29.77, -41.59)
CIE-LCHlch(49.25, 51.14, 305.60°)
OKLaboklab(57.46% 0.0584 -0.1168)
OKLCHoklch(57.46% 0.131 296.5)
XYZxyz(22.8795, 17.8004, 49.7976)
Luminance0.1780 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8166BC #A1BC66
analogous
#6676BC #8166BC #AC66BC
triadic
#8166BC #BC8166 #66BC81
tetradic
#8166BC #BC6676 #A1BC66 #66BCAC
square
#8166BC #BC6676 #A1BC66 #66BCAC
split-complementary
#8166BC #BCAC66 #76BC66
monochromatic
#483375 #62469F #8166BC #A491CF #C7BBE1

Accessibility & contrast

On white

4.61
#8166BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#8166BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8166BC
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8166BC#FFFFFF#000000##FFFFFF
##8166BC1.004.614.564.61
#FFFFFF4.611.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B75BF
Deuteranopia (green-blind)
#5074BA
Tritanopia (blue-blind)
#747688
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #8166bc;
/* rgb */ color: rgb(129, 102, 188);
/* oklch */ color: oklch(57.5% 0.131 296.5);
Tailwind
colors: {
  custom: {
    50: '#a892d0',
    500: '#8166bc',
    950: '#000000',
  },
}
SCSS
$custom: #8166bc;
$custom-light: #a892d0;
$custom-dark: #000000;
JSON
{
  "hex": "#8166bc",
  "rgb": {
    "r": 129,
    "g": 102,
    "b": 188
  },
  "hsl": {
    "h": 258.837,
    "s": 39.091,
    "l": 56.863
  },
  "oklch": {
    "l": 0.57457,
    "c": 0.13061,
    "h": 296.5
  },
  "luminance": 0.17801
}

Semantic roles & 50–950 ramp

primary
#8166BC
secondary
#C5D0AD
accent
#CF59AA
background
#FAF9FC
surface
#F4F1F9
border
#CECBD2
text
#100D14
muted
#7F7E82

Preview Lab

Preview with #8166BC

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

Preview Lab → · Contrast checker → · Palette generator →

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