#8166FE#8166FE

#8166FE is a mid, highly saturated violet. Relative luminance 0.213; OKLCH L 61.8% C 0.216 H 286.4°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#8166FE
RGBrgb(129, 102, 254)
HSLhsl(251, 99%, 70%)
HSVhsv(251, 60%, 100%)
CMYKcmyk(49.2%, 59.8%, 0%, 0.4%)
CIE-LABlab(53.30, 47.99, -72.42)
CIE-LCHlch(53.30, 86.88, 303.53°)
OKLaboklab(61.76% 0.0609 -0.2073)
OKLCHoklch(61.76% 0.216 286.4)
XYZxyz(31.6888, 21.3241, 96.1930)
Luminance0.2133 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8166FE #E3FE66
analogous
#6697FE #8166FE #CD66FE
triadic
#8166FE #FE8166 #66FE81
tetradic
#8166FE #FE6697 #E3FE66 #66FECD
square
#8166FE #FE6697 #E3FE66 #66FECD
split-complementary
#8166FE #FECD66 #97FE66
monochromatic
#2A02E8 #4F29FE #8166FE #B3A3FE #E5E0FF

Accessibility & contrast

On white

3.99
#8166FE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#8166FE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8166FE
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8166FE#FFFFFF#000000##000000
##8166FE1.003.995.275.27
#FFFFFF3.991.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0083FF
Deuteranopia (green-blind)
#007BFB
Tritanopia (blue-blind)
#548AA8
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #8166fe;
/* rgb */ color: rgb(129, 102, 254);
/* oklch */ color: oklch(61.8% 0.216 286.4);
Tailwind
colors: {
  custom: {
    50: '#ae93ff',
    500: '#8166fe',
    950: '#000000',
  },
}
SCSS
$custom: #8166fe;
$custom-light: #ae93ff;
$custom-dark: #000000;
JSON
{
  "hex": "#8166fe",
  "rgb": {
    "r": 129,
    "g": 102,
    "b": 254
  },
  "hsl": {
    "h": 250.658,
    "s": 98.701,
    "l": 69.804
  },
  "oklch": {
    "l": 0.61756,
    "c": 0.2161,
    "h": 286.4
  },
  "luminance": 0.21326
}

Semantic roles & 50–950 ramp

primary
#8166FE
secondary
#EEF5CA
accent
#E600BD
background
#FBF9FF
surface
#F6F1FF
border
#D0CBD7
text
#110D18
muted
#807E86

Preview Lab

Preview with #8166FE

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

Preview Lab → · Contrast checker → · Palette generator →

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