#8166FD#8166FD

#8166FD is a mid, highly saturated violet. Relative luminance 0.213; OKLCH L 61.7% C 0.215 H 286.5°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#8166FD
RGBrgb(129, 102, 253)
HSLhsl(251, 97%, 70%)
HSVhsv(251, 60%, 99%)
CMYKcmyk(49%, 59.7%, 0%, 0.8%)
CIE-LABlab(53.23, 47.70, -71.98)
CIE-LCHlch(53.23, 86.35, 303.53°)
OKLaboklab(61.68% 0.061 -0.206)
OKLCHoklch(61.68% 0.215 286.5)
XYZxyz(31.5290, 21.2602, 95.3518)
Luminance0.2126 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8166FD #E2FD66
analogous
#6697FD #8166FD #CC66FD
triadic
#8166FD #FD8166 #66FD81
tetradic
#8166FD #FD6697 #E2FD66 #66FDCC
square
#8166FD #FD6697 #E2FD66 #66FDCC
split-complementary
#8166FD #FDCC66 #97FD66
monochromatic
#2C03E6 #4F2AFC #8166FD #B3A2FE #E4DFFF

Accessibility & contrast

On white

4.00
#8166FD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.25
#8166FD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8166FD
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8166FD#FFFFFF#000000##000000
##8166FD1.004.005.255.25
#FFFFFF4.001.0021.0021.00
#0000005.2521.001.001.00
##0000005.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0083FF
Deuteranopia (green-blind)
#007BFA
Tritanopia (blue-blind)
#5589A8
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #8166fd;
/* rgb */ color: rgb(129, 102, 253);
/* oklch */ color: oklch(61.7% 0.215 286.5);
Tailwind
colors: {
  custom: {
    50: '#ae93ff',
    500: '#8166fd',
    950: '#000000',
  },
}
SCSS
$custom: #8166fd;
$custom-light: #ae93ff;
$custom-dark: #000000;
JSON
{
  "hex": "#8166fd",
  "rgb": {
    "r": 129,
    "g": 102,
    "b": 253
  },
  "hsl": {
    "h": 250.728,
    "s": 97.419,
    "l": 69.608
  },
  "oklch": {
    "l": 0.61684,
    "c": 0.21486,
    "h": 286.5
  },
  "luminance": 0.21262
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8166FD

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

Preview Lab → · Contrast checker → · Palette generator →

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