#8166DF#8166DF

#8166DF is a mid, vivid violet. Relative luminance 0.195; OKLCH L 59.6% C 0.177 H 290.3°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#8166DF
RGBrgb(129, 102, 223)
HSLhsl(253, 65%, 64%)
HSVhsv(253, 54%, 87%)
CMYKcmyk(42.2%, 54.3%, 0%, 12.5%)
CIE-LABlab(51.26, 39.24, -58.38)
CIE-LCHlch(51.26, 70.34, 303.91°)
OKLaboklab(59.61% 0.0613 -0.166)
OKLCHoklch(59.61% 0.177 290.3)
XYZxyz(27.1202, 19.4967, 72.1320)
Luminance0.1950 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8166DF #C4DF66
analogous
#6687DF #8166DF #BD66DF
triadic
#8166DF #DF8166 #66DF81
tetradic
#8166DF #DF6687 #C4DF66 #66DFBD
square
#8166DF #DF6687 #C4DF66 #66DFBD
split-complementary
#8166DF #DFBD66 #87DF66
monochromatic
#4123A8 #5733D4 #8166DF #AB99EA #D4CBF4

Accessibility & contrast

On white

4.29
#8166DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#8166DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8166DF
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8166DF#FFFFFF#000000##000000
##8166DF1.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#297CE3
Deuteranopia (green-blind)
#2D77DC
Tritanopia (blue-blind)
#668099
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #8166df;
/* rgb */ color: rgb(129, 102, 223);
/* oklch */ color: oklch(59.6% 0.177 290.3);
Tailwind
colors: {
  custom: {
    50: '#ab92ea',
    500: '#8166df',
    950: '#000000',
  },
}
SCSS
$custom: #8166df;
$custom-light: #ab92ea;
$custom-dark: #000000;
JSON
{
  "hex": "#8166df",
  "rgb": {
    "r": 129,
    "g": 102,
    "b": 223
  },
  "hsl": {
    "h": 253.388,
    "s": 65.405,
    "l": 63.725
  },
  "oklch": {
    "l": 0.59606,
    "c": 0.17699,
    "h": 290.3
  },
  "luminance": 0.19498
}

Semantic roles & 50–950 ramp

primary
#8166DF
secondary
#DCE6BB
accent
#CD18A5
background
#FAF9FE
surface
#F5F1FD
border
#CFCBD5
text
#110D16
muted
#807E84

Preview Lab

Preview with #8166DF

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

Preview Lab → · Contrast checker → · Palette generator →

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