#8166F7#8166F7

#8166F7 is a mid, highly saturated violet. Relative luminance 0.209; OKLCH L 61.3% C 0.207 H 287.2°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#8166F7
RGBrgb(129, 102, 247)
HSLhsl(251, 90%, 68%)
HSVhsv(251, 59%, 97%)
CMYKcmyk(47.8%, 58.7%, 0%, 3.1%)
CIE-LABlab(52.82, 46.00, -69.31)
CIE-LCHlch(52.82, 83.19, 303.57°)
OKLaboklab(61.25% 0.0612 -0.1982)
OKLCHoklch(61.25% 0.207 287.2)
XYZxyz(30.5882, 20.8839, 90.3969)
Luminance0.2089 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8166F7 #DCF766
analogous
#6693F7 #8166F7 #C966F7
triadic
#8166F7 #F78166 #66F781
tetradic
#8166F7 #F76693 #DCF766 #66F7C9
square
#8166F7 #F76693 #DCF766 #66F7C9
split-complementary
#8166F7 #F7C966 #93F766
monochromatic
#310BD7 #512CF4 #8166F7 #B1A0FA #E1DAFD

Accessibility & contrast

On white

4.06
#8166F7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#8166F7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8166F7
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8166F7#FFFFFF#000000##000000
##8166F71.004.065.185.18
#FFFFFF4.061.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0082FC
Deuteranopia (green-blind)
#007AF4
Tritanopia (blue-blind)
#5987A5
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8166f7;
/* rgb */ color: rgb(129, 102, 247);
/* oklch */ color: oklch(61.3% 0.207 287.2);
Tailwind
colors: {
  custom: {
    50: '#ad93fb',
    500: '#8166f7',
    950: '#000000',
  },
}
SCSS
$custom: #8166f7;
$custom-light: #ad93fb;
$custom-dark: #000000;
JSON
{
  "hex": "#8166f7",
  "rgb": {
    "r": 129,
    "g": 102,
    "b": 247
  },
  "hsl": {
    "h": 251.172,
    "s": 90.062,
    "l": 68.431
  },
  "oklch": {
    "l": 0.61253,
    "c": 0.20744,
    "h": 287.2
  },
  "luminance": 0.20885
}

Semantic roles & 50–950 ramp

primary
#8166F7
secondary
#EAF2C7
accent
#E600BB
background
#FBF9FF
surface
#F6F1FF
border
#D0CBD7
text
#110D17
muted
#807E85

Preview Lab

Preview with #8166F7

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

Preview Lab → · Contrast checker → · Palette generator →

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