#8166BA#8166BA

#8166BA is a mid, vivid violet. Relative luminance 0.177; OKLCH L 57.3% C 0.128 H 297.0°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#8166BA
RGBrgb(129, 102, 186)
HSLhsl(259, 38%, 56%)
HSVhsv(259, 45%, 73%)
CMYKcmyk(30.6%, 45.2%, 0%, 27.1%)
CIE-LABlab(49.15, 29.25, -40.60)
CIE-LCHlch(49.15, 50.03, 305.77°)
OKLaboklab(57.34% 0.0581 -0.1139)
OKLCHoklch(57.34% 0.128 297)
XYZxyz(22.6654, 17.7148, 48.6700)
Luminance0.1772 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8166BA #9FBA66
analogous
#6675BA #8166BA #AB66BA
triadic
#8166BA #BA8166 #66BA81
tetradic
#8166BA #BA6675 #9FBA66 #66BAAB
square
#8166BA #BA6675 #9FBA66 #66BAAB
split-complementary
#8166BA #BAAB66 #75BA66
monochromatic
#483372 #62469C #8166BA #A490CD #C6BAE0

Accessibility & contrast

On white

4.62
#8166BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#8166BA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8166BA
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8166BA#FFFFFF#000000##FFFFFF
##8166BA1.004.624.544.62
#FFFFFF4.621.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C75BD
Deuteranopia (green-blind)
#5174B8
Tritanopia (blue-blind)
#757587
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #8166ba;
/* rgb */ color: rgb(129, 102, 186);
/* oklch */ color: oklch(57.3% 0.128 297.0);
Tailwind
colors: {
  custom: {
    50: '#a892cf',
    500: '#8166ba',
    950: '#000000',
  },
}
SCSS
$custom: #8166ba;
$custom-light: #a892cf;
$custom-dark: #000000;
JSON
{
  "hex": "#8166ba",
  "rgb": {
    "r": 129,
    "g": 102,
    "b": 186
  },
  "hsl": {
    "h": 259.286,
    "s": 37.838,
    "l": 56.471
  },
  "oklch": {
    "l": 0.57344,
    "c": 0.1279,
    "h": 297
  },
  "luminance": 0.17715
}

Semantic roles & 50–950 ramp

primary
#8166BA
secondary
#C4CFAD
accent
#CE5AA9
background
#FAF9FC
surface
#F4F1F9
border
#CECBD2
text
#100D14
muted
#7F7E82

Preview Lab

Preview with #8166BA

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

Preview Lab → · Contrast checker → · Palette generator →

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