#8166ED#8166ED

#8166ED is a mid, vivid violet. Relative luminance 0.203; OKLCH L 60.6% C 0.195 H 288.4°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#8166ED
RGBrgb(129, 102, 237)
HSLhsl(252, 79%, 66%)
HSVhsv(252, 57%, 93%)
CMYKcmyk(45.6%, 57%, 0%, 7.1%)
CIE-LABlab(52.16, 43.17, -64.81)
CIE-LCHlch(52.16, 77.87, 303.66°)
OKLaboklab(60.55% 0.0614 -0.1849)
OKLCHoklch(60.55% 0.195 288.4)
XYZxyz(29.0863, 20.2831, 82.4868)
Luminance0.2028 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8166ED #D2ED66
analogous
#668FED #8166ED #C566ED
triadic
#8166ED #ED8166 #66ED81
tetradic
#8166ED #ED668F #D2ED66 #66EDC5
square
#8166ED #ED668F #D2ED66 #66EDC5
split-complementary
#8166ED #EDC566 #8FED66
monochromatic
#3917C2 #542FE7 #8166ED #AE9DF3 #DBD4FA

Accessibility & contrast

On white

4.15
#8166ED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#8166ED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8166ED
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8166ED#FFFFFF#000000##000000
##8166ED1.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#007FF1
Deuteranopia (green-blind)
#0679EA
Tritanopia (blue-blind)
#5F84A0
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8166ed;
/* rgb */ color: rgb(129, 102, 237);
/* oklch */ color: oklch(60.6% 0.195 288.4);
Tailwind
colors: {
  custom: {
    50: '#ac92f4',
    500: '#8166ed',
    950: '#000000',
  },
}
SCSS
$custom: #8166ed;
$custom-light: #ac92f4;
$custom-dark: #000000;
JSON
{
  "hex": "#8166ed",
  "rgb": {
    "r": 129,
    "g": 102,
    "b": 237
  },
  "hsl": {
    "h": 252,
    "s": 78.947,
    "l": 66.471
  },
  "oklch": {
    "l": 0.60551,
    "c": 0.19489,
    "h": 288.4
  },
  "luminance": 0.20284
}

Semantic roles & 50–950 ramp

primary
#8166ED
secondary
#E5EDC2
accent
#DB0AB1
background
#FBF9FF
surface
#F6F1FE
border
#D0CBD6
text
#110D17
muted
#807E85

Preview Lab

Preview with #8166ED

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

Preview Lab → · Contrast checker → · Palette generator →

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