#8166BD#8166BD

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

Color values

HEX#8166BD
RGBrgb(129, 102, 189)
HSLhsl(259, 40%, 57%)
HSVhsv(259, 46%, 74%)
CMYKcmyk(31.7%, 46%, 0%, 25.9%)
CIE-LABlab(49.31, 30.03, -42.08)
CIE-LCHlch(49.31, 51.70, 305.51°)
OKLaboklab(57.51% 0.0585 -0.1183)
OKLCHoklch(57.51% 0.132 296.3)
XYZxyz(22.9877, 17.8437, 50.3673)
Luminance0.1784 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8166BD #A2BD66
analogous
#6677BD #8166BD #AD66BD
triadic
#8166BD #BD8166 #66BD81
tetradic
#8166BD #BD6677 #A2BD66 #66BDAD
square
#8166BD #BD6677 #A2BD66 #66BDAD
split-complementary
#8166BD #BDAD66 #77BD66
monochromatic
#483376 #6245A1 #8166BD #A491CF #C7BCE2

Accessibility & contrast

On white

4.60
#8166BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#8166BD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8166BD
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8166BD#FFFFFF#000000##FFFFFF
##8166BD1.004.604.574.60
#FFFFFF4.601.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A76C0
Deuteranopia (green-blind)
#4F74BB
Tritanopia (blue-blind)
#747688
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #8166bd;
/* rgb */ color: rgb(129, 102, 189);
/* oklch */ color: oklch(57.5% 0.132 296.3);
Tailwind
colors: {
  custom: {
    50: '#a892d1',
    500: '#8166bd',
    950: '#000000',
  },
}
SCSS
$custom: #8166bd;
$custom-light: #a892d1;
$custom-dark: #000000;
JSON
{
  "hex": "#8166bd",
  "rgb": {
    "r": 129,
    "g": 102,
    "b": 189
  },
  "hsl": {
    "h": 258.621,
    "s": 39.726,
    "l": 57.059
  },
  "oklch": {
    "l": 0.57514,
    "c": 0.13196,
    "h": 296.3
  },
  "luminance": 0.17844
}

Semantic roles & 50–950 ramp

primary
#8166BD
secondary
#C6D1AE
accent
#D058AB
background
#FAF9FC
surface
#F4F1F9
border
#CECBD2
text
#100D14
muted
#7F7E82

Preview Lab

Preview with #8166BD

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

Preview Lab → · Contrast checker → · Palette generator →

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