#8166F4#8166F4

#8166F4 is a mid, highly saturated violet. Relative luminance 0.207; OKLCH L 61.0% C 0.204 H 287.5°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#8166F4
RGBrgb(129, 102, 244)
HSLhsl(251, 87%, 68%)
HSVhsv(251, 58%, 96%)
CMYKcmyk(47.1%, 58.2%, 0%, 4.3%)
CIE-LABlab(52.62, 45.14, -67.97)
CIE-LCHlch(52.62, 81.60, 303.59°)
OKLaboklab(61.04% 0.0613 -0.1942)
OKLCHoklch(61.04% 0.204 287.5)
XYZxyz(30.1290, 20.7002, 87.9784)
Luminance0.2070 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8166F4 #D9F466
analogous
#6692F4 #8166F4 #C866F4
triadic
#8166F4 #F48166 #66F481
tetradic
#8166F4 #F46692 #D9F466 #66F4C8
square
#8166F4 #F46692 #D9F466 #66F4C8
split-complementary
#8166F4 #F4C866 #92F466
monochromatic
#340FD1 #522DF0 #8166F4 #B09FF8 #DFD8FC

Accessibility & contrast

On white

4.09
#8166F4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#8166F4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8166F4
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8166F4#FFFFFF#000000##000000
##8166F41.004.095.145.14
#FFFFFF4.091.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0081F9
Deuteranopia (green-blind)
#007AF1
Tritanopia (blue-blind)
#5B86A3
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8166f4;
/* rgb */ color: rgb(129, 102, 244);
/* oklch */ color: oklch(61.0% 0.204 287.5);
Tailwind
colors: {
  custom: {
    50: '#ad92f9',
    500: '#8166f4',
    950: '#000000',
  },
}
SCSS
$custom: #8166f4;
$custom-light: #ad92f9;
$custom-dark: #000000;
JSON
{
  "hex": "#8166f4",
  "rgb": {
    "r": 129,
    "g": 102,
    "b": 244
  },
  "hsl": {
    "h": 251.408,
    "s": 86.585,
    "l": 67.843
  },
  "oklch": {
    "l": 0.6104,
    "c": 0.2037,
    "h": 287.5
  },
  "luminance": 0.20702
}

Semantic roles & 50–950 ramp

primary
#8166F4
secondary
#E8F1C5
accent
#E302B8
background
#FBF9FF
surface
#F6F1FF
border
#D0CBD7
text
#110D17
muted
#807E85

Preview Lab

Preview with #8166F4

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

Preview Lab → · Contrast checker → · Palette generator →

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