#8166F5#8166F5

#8166F5 is a mid, highly saturated violet. Relative luminance 0.208; OKLCH L 61.1% C 0.205 H 287.4°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#8166F5
RGBrgb(129, 102, 245)
HSLhsl(251, 88%, 68%)
HSVhsv(251, 58%, 96%)
CMYKcmyk(47.3%, 58.4%, 0%, 3.9%)
CIE-LABlab(52.69, 45.43, -68.42)
CIE-LCHlch(52.69, 82.13, 303.58°)
OKLaboklab(61.11% 0.0613 -0.1956)
OKLCHoklch(61.11% 0.205 287.4)
XYZxyz(30.2813, 20.7611, 88.7803)
Luminance0.2076 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8166F5 #DAF566
analogous
#6692F5 #8166F5 #C966F5
triadic
#8166F5 #F58166 #66F581
tetradic
#8166F5 #F56692 #DAF566 #66F5C9
square
#8166F5 #F56692 #DAF566 #66F5C9
split-complementary
#8166F5 #F5C966 #92F566
monochromatic
#330ED3 #522DF1 #8166F5 #B09FF9 #E0D9FD

Accessibility & contrast

On white

4.08
#8166F5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#8166F5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8166F5
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8166F5#FFFFFF#000000##000000
##8166F51.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0081FA
Deuteranopia (green-blind)
#007AF2
Tritanopia (blue-blind)
#5A87A4
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8166f5;
/* rgb */ color: rgb(129, 102, 245);
/* oklch */ color: oklch(61.1% 0.205 287.4);
Tailwind
colors: {
  custom: {
    50: '#ad92f9',
    500: '#8166f5',
    950: '#000000',
  },
}
SCSS
$custom: #8166f5;
$custom-light: #ad92f9;
$custom-dark: #000000;
JSON
{
  "hex": "#8166f5",
  "rgb": {
    "r": 129,
    "g": 102,
    "b": 245
  },
  "hsl": {
    "h": 251.329,
    "s": 87.73,
    "l": 68.039
  },
  "oklch": {
    "l": 0.61111,
    "c": 0.20494,
    "h": 287.4
  },
  "luminance": 0.20762
}

Semantic roles & 50–950 ramp

primary
#8166F5
secondary
#E9F1C6
accent
#E401B9
background
#FBF9FF
surface
#F6F1FF
border
#D0CBD7
text
#110D17
muted
#807E85

Preview Lab

Preview with #8166F5

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

Preview Lab → · Contrast checker → · Palette generator →

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