#8166EF#8166EF

#8166EF is a mid, vivid violet. Relative luminance 0.204; OKLCH L 60.7% C 0.197 H 288.1°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#8166EF
RGBrgb(129, 102, 239)
HSLhsl(252, 81%, 67%)
HSVhsv(252, 57%, 94%)
CMYKcmyk(46%, 57.3%, 0%, 6.3%)
CIE-LABlab(52.29, 43.73, -65.72)
CIE-LCHlch(52.29, 78.94, 303.64°)
OKLaboklab(60.69% 0.0614 -0.1876)
OKLCHoklch(60.69% 0.197 288.1)
XYZxyz(29.3801, 20.4007, 84.0343)
Luminance0.2040 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8166EF #D4EF66
analogous
#6690EF #8166EF #C666EF
triadic
#8166EF #EF8166 #66EF81
tetradic
#8166EF #EF6690 #D4EF66 #66EFC6
square
#8166EF #EF6690 #D4EF66 #66EFC6
split-complementary
#8166EF #EFC666 #90EF66
monochromatic
#3815C6 #532FE9 #8166EF #AF9DF5 #DCD5FB

Accessibility & contrast

On white

4.13
#8166EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#8166EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8166EF
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8166EF#FFFFFF#000000##000000
##8166EF1.004.135.085.08
#FFFFFF4.131.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0080F4
Deuteranopia (green-blind)
#0079EC
Tritanopia (blue-blind)
#5E85A1
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8166ef;
/* rgb */ color: rgb(129, 102, 239);
/* oklch */ color: oklch(60.7% 0.197 288.1);
Tailwind
colors: {
  custom: {
    50: '#ad92f5',
    500: '#8166ef',
    950: '#000000',
  },
}
SCSS
$custom: #8166ef;
$custom-light: #ad92f5;
$custom-dark: #000000;
JSON
{
  "hex": "#8166ef",
  "rgb": {
    "r": 129,
    "g": 102,
    "b": 239
  },
  "hsl": {
    "h": 251.825,
    "s": 81.065,
    "l": 66.863
  },
  "oklch": {
    "l": 0.6069,
    "c": 0.19742,
    "h": 288.1
  },
  "luminance": 0.20402
}

Semantic roles & 50–950 ramp

primary
#8166EF
secondary
#E6EEC2
accent
#DD08B3
background
#FBF9FF
surface
#F6F1FE
border
#D0CBD6
text
#110D17
muted
#807E85

Preview Lab

Preview with #8166EF

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

Preview Lab → · Contrast checker → · Palette generator →

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