#8166FB#8166FB

#8166FB is a mid, highly saturated violet. Relative luminance 0.211; OKLCH L 61.5% C 0.212 H 286.7°. Best body text is #000000 at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#8166FB
RGBrgb(129, 102, 251)
HSLhsl(251, 95%, 69%)
HSVhsv(251, 59%, 98%)
CMYKcmyk(48.6%, 59.4%, 0%, 1.6%)
CIE-LABlab(53.10, 47.13, -71.09)
CIE-LCHlch(53.10, 85.30, 303.54°)
OKLaboklab(61.54% 0.0611 -0.2034)
OKLCHoklch(61.54% 0.212 286.7)
XYZxyz(31.2121, 21.1335, 93.6826)
Luminance0.2114 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8166FB #E0FB66
analogous
#6696FB #8166FB #CB66FB
triadic
#8166FB #FB8166 #66FB81
tetradic
#8166FB #FB6696 #E0FB66 #66FBCB
square
#8166FB #FB6696 #E0FB66 #66FBCB
split-complementary
#8166FB #FBCB66 #96FB66
monochromatic
#2E06E1 #502AF9 #8166FB #B2A2FD #E3DDFE

Accessibility & contrast

On white

4.02
#8166FB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.23
#8166FB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8166FB
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8166FB#FFFFFF#000000##000000
##8166FB1.004.025.235.23
#FFFFFF4.021.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0083FF
Deuteranopia (green-blind)
#007BF8
Tritanopia (blue-blind)
#5689A7
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #8166fb;
/* rgb */ color: rgb(129, 102, 251);
/* oklch */ color: oklch(61.5% 0.212 286.7);
Tailwind
colors: {
  custom: {
    50: '#ae93fe',
    500: '#8166fb',
    950: '#000000',
  },
}
SCSS
$custom: #8166fb;
$custom-light: #ae93fe;
$custom-dark: #000000;
JSON
{
  "hex": "#8166fb",
  "rgb": {
    "r": 129,
    "g": 102,
    "b": 251
  },
  "hsl": {
    "h": 250.872,
    "s": 94.904,
    "l": 69.216
  },
  "oklch": {
    "l": 0.61539,
    "c": 0.2124,
    "h": 286.7
  },
  "luminance": 0.21135
}

Semantic roles & 50–950 ramp

primary
#8166FB
secondary
#ECF4C9
accent
#E600BC
background
#FBF9FF
surface
#F6F1FF
border
#D0CBD7
text
#110D18
muted
#807E86

Preview Lab

Preview with #8166FB

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

Preview Lab → · Contrast checker → · Palette generator →

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