#8166CF#8166CF

#8166CF is a mid, vivid violet. Relative luminance 0.187; OKLCH L 58.6% C 0.156 H 292.8°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#8166CF
RGBrgb(129, 102, 207)
HSLhsl(255, 52%, 61%)
HSVhsv(255, 51%, 81%)
CMYKcmyk(37.7%, 50.7%, 0%, 18.8%)
CIE-LABlab(50.30, 34.84, -50.83)
CIE-LCHlch(50.30, 61.62, 304.43°)
OKLaboklab(58.58% 0.0605 -0.1439)
OKLCHoklch(58.58% 0.156 292.8)
XYZxyz(25.0641, 18.6743, 61.3033)
Luminance0.1867 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8166CF #B4CF66
analogous
#667FCF #8166CF #B666CF
triadic
#8166CF #CF8166 #66CF81
tetradic
#8166CF #CF667F #B4CF66 #66CFB6
square
#8166CF #CF667F #B4CF66 #66CFB6
split-complementary
#8166CF #CFB666 #7FCF66
monochromatic
#462D8E #5C3BBD #8166CF #A795DE #CEC3EC

Accessibility & contrast

On white

4.44
#8166CF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#8166CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8166CF
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8166CF#FFFFFF#000000##000000
##8166CF1.004.444.744.74
#FFFFFF4.441.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C79D3
Deuteranopia (green-blind)
#4176CD
Tritanopia (blue-blind)
#6D7B91
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #8166cf;
/* rgb */ color: rgb(129, 102, 207);
/* oklch */ color: oklch(58.6% 0.156 292.8);
Tailwind
colors: {
  custom: {
    50: '#a992de',
    500: '#8166cf',
    950: '#000000',
  },
}
SCSS
$custom: #8166cf;
$custom-light: #a992de;
$custom-dark: #000000;
JSON
{
  "hex": "#8166cf",
  "rgb": {
    "r": 129,
    "g": 102,
    "b": 207
  },
  "hsl": {
    "h": 255.429,
    "s": 52.239,
    "l": 60.588
  },
  "oklch": {
    "l": 0.58584,
    "c": 0.15606,
    "h": 292.8
  },
  "luminance": 0.18675
}

Semantic roles & 50–950 ramp

primary
#8166CF
secondary
#D2DCB4
accent
#C02698
background
#FAF9FD
surface
#F4F1FB
border
#CECBD4
text
#100D15
muted
#7F7E83

Preview Lab

Preview with #8166CF

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

Preview Lab → · Contrast checker → · Palette generator →

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