#8166CB#8166CB

#8166CB is a mid, vivid violet. Relative luminance 0.185; OKLCH L 58.3% C 0.151 H 293.5°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#8166CB
RGBrgb(129, 102, 203)
HSLhsl(256, 49%, 60%)
HSVhsv(256, 50%, 80%)
CMYKcmyk(36.5%, 49.8%, 0%, 20.4%)
CIE-LABlab(50.07, 33.76, -48.91)
CIE-LCHlch(50.07, 59.43, 304.61°)
OKLaboklab(58.34% 0.0601 -0.1383)
OKLCHoklch(58.34% 0.151 293.5)
XYZxyz(24.5813, 18.4811, 58.7604)
Luminance0.1848 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8166CB #B0CB66
analogous
#667DCB #8166CB #B466CB
triadic
#8166CB #CB8166 #66CB81
tetradic
#8166CB #CB667D #B0CB66 #66CBB4
square
#8166CB #CB667D #B0CB66 #66CBB4
split-complementary
#8166CB #CBB466 #7DCB66
monochromatic
#462E88 #5E3EB6 #8166CB #A794DB #CCC1EA

Accessibility & contrast

On white

4.47
#8166CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#8166CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8166CB
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8166CB#FFFFFF#000000##000000
##8166CB1.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4078CF
Deuteranopia (green-blind)
#4575C9
Tritanopia (blue-blind)
#6F7A8F
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #8166cb;
/* rgb */ color: rgb(129, 102, 203);
/* oklch */ color: oklch(58.3% 0.151 293.5);
Tailwind
colors: {
  custom: {
    50: '#a992db',
    500: '#8166cb',
    950: '#000000',
  },
}
SCSS
$custom: #8166cb;
$custom-light: #a992db;
$custom-dark: #000000;
JSON
{
  "hex": "#8166cb",
  "rgb": {
    "r": 129,
    "g": 102,
    "b": 203
  },
  "hsl": {
    "h": 256.04,
    "s": 49.268,
    "l": 59.804
  },
  "oklch": {
    "l": 0.58339,
    "c": 0.15075,
    "h": 293.5
  },
  "luminance": 0.18482
}

Semantic roles & 50–950 ramp

primary
#8166CB
secondary
#CFDAB3
accent
#D94FB4
background
#FAF9FD
surface
#F4F1FB
border
#CECBD4
text
#100D15
muted
#7F7E83

Preview Lab

Preview with #8166CB

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

Preview Lab → · Contrast checker → · Palette generator →

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