#8166DE#8166DE

#8166DE is a mid, vivid violet. Relative luminance 0.194; OKLCH L 59.5% C 0.176 H 290.4°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#8166DE
RGBrgb(129, 102, 222)
HSLhsl(254, 65%, 64%)
HSVhsv(254, 54%, 87%)
CMYKcmyk(41.9%, 54.1%, 0%, 12.9%)
CIE-LABlab(51.20, 38.97, -57.91)
CIE-LCHlch(51.20, 69.80, 303.93°)
OKLaboklab(59.54% 0.0613 -0.1647)
OKLCHoklch(59.54% 0.176 290.4)
XYZxyz(26.9858, 19.4429, 71.4241)
Luminance0.1944 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8166DE #C3DE66
analogous
#6687DE #8166DE #BD66DE
triadic
#8166DE #DE8166 #66DE81
tetradic
#8166DE #DE6687 #C3DE66 #66DEBD
square
#8166DE #DE6687 #C3DE66 #66DEBD
split-complementary
#8166DE #DEBD66 #87DE66
monochromatic
#4124A6 #5834D3 #8166DE #AA98E9 #D4CBF4

Accessibility & contrast

On white

4.30
#8166DE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#8166DE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8166DE
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8166DE#FFFFFF#000000##000000
##8166DE1.004.304.894.89
#FFFFFF4.301.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#2A7CE2
Deuteranopia (green-blind)
#2F77DB
Tritanopia (blue-blind)
#678098
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #8166de;
/* rgb */ color: rgb(129, 102, 222);
/* oklch */ color: oklch(59.5% 0.176 290.4);
Tailwind
colors: {
  custom: {
    50: '#ab92e9',
    500: '#8166de',
    950: '#000000',
  },
}
SCSS
$custom: #8166de;
$custom-light: #ab92e9;
$custom-dark: #000000;
JSON
{
  "hex": "#8166de",
  "rgb": {
    "r": 129,
    "g": 102,
    "b": 222
  },
  "hsl": {
    "h": 253.5,
    "s": 64.516,
    "l": 63.529
  },
  "oklch": {
    "l": 0.59541,
    "c": 0.1757,
    "h": 290.4
  },
  "luminance": 0.19444
}

Semantic roles & 50–950 ramp

primary
#8166DE
secondary
#DCE5BB
accent
#CC19A4
background
#FAF9FE
surface
#F5F1FD
border
#CFCBD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #8166DE

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

Preview Lab → · Contrast checker → · Palette generator →

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