#8166CD#8166CD

#8166CD is a mid, vivid violet. Relative luminance 0.186; OKLCH L 58.5% C 0.153 H 293.1°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#8166CD
RGBrgb(129, 102, 205)
HSLhsl(256, 51%, 60%)
HSVhsv(256, 50%, 80%)
CMYKcmyk(37.1%, 50.2%, 0%, 19.6%)
CIE-LABlab(50.19, 34.30, -49.87)
CIE-LCHlch(50.19, 60.53, 304.52°)
OKLaboklab(58.46% 0.0603 -0.1411)
OKLCHoklch(58.46% 0.153 293.1)
XYZxyz(24.8212, 18.5771, 60.0238)
Luminance0.1858 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8166CD #B2CD66
analogous
#667ECD #8166CD #B466CD
triadic
#8166CD #CD8166 #66CD81
tetradic
#8166CD #CD667E #B2CD66 #66CDB4
square
#8166CD #CD667E #B2CD66 #66CDB4
split-complementary
#8166CD #CDB466 #7ECD66
monochromatic
#462D8B #5D3DB9 #8166CD #A794DC #CDC2EB

Accessibility & contrast

On white

4.45
#8166CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#8166CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8166CD
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8166CD#FFFFFF#000000##000000
##8166CD1.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E79D1
Deuteranopia (green-blind)
#4376CB
Tritanopia (blue-blind)
#6E7B90
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #8166cd;
/* rgb */ color: rgb(129, 102, 205);
/* oklch */ color: oklch(58.5% 0.153 293.1);
Tailwind
colors: {
  custom: {
    50: '#a992dd',
    500: '#8166cd',
    950: '#000000',
  },
}
SCSS
$custom: #8166cd;
$custom-light: #a992dd;
$custom-dark: #000000;
JSON
{
  "hex": "#8166cd",
  "rgb": {
    "r": 129,
    "g": 102,
    "b": 205
  },
  "hsl": {
    "h": 255.728,
    "s": 50.739,
    "l": 60.196
  },
  "oklch": {
    "l": 0.58461,
    "c": 0.15341,
    "h": 293.1
  },
  "luminance": 0.18578
}

Semantic roles & 50–950 ramp

primary
#8166CD
secondary
#D1DBB4
accent
#BE2797
background
#FAF9FD
surface
#F4F1FB
border
#CECBD4
text
#100D15
muted
#7F7E83

Preview Lab

Preview with #8166CD

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

Preview Lab → · Contrast checker → · Palette generator →

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