#8166D5#8166D5

#8166D5 is a mid, vivid violet. Relative luminance 0.190; OKLCH L 59.0% C 0.164 H 291.8°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#8166D5
RGBrgb(129, 102, 213)
HSLhsl(255, 57%, 62%)
HSVhsv(255, 52%, 84%)
CMYKcmyk(39.4%, 52.1%, 0%, 16.5%)
CIE-LABlab(50.66, 36.48, -53.69)
CIE-LCHlch(50.66, 64.91, 304.20°)
OKLaboklab(58.96% 0.0609 -0.1522)
OKLCHoklch(58.96% 0.164 291.8)
XYZxyz(25.8116, 18.9733, 65.2401)
Luminance0.1897 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8166D5 #BAD566
analogous
#6683D5 #8166D5 #B966D5
triadic
#8166D5 #D58166 #66D581
tetradic
#8166D5 #D56683 #BAD566 #66D5B9
square
#8166D5 #D56683 #BAD566 #66D5B9
split-complementary
#8166D5 #D5B966 #83D566
monochromatic
#442997 #5A37C7 #8166D5 #A996E2 #D0C6EF

Accessibility & contrast

On white

4.38
#8166D5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#8166D5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8166D5
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8166D5#FFFFFF#000000##000000
##8166D51.004.384.794.79
#FFFFFF4.381.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#367AD9
Deuteranopia (green-blind)
#3B76D2
Tritanopia (blue-blind)
#6B7D94
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #8166d5;
/* rgb */ color: rgb(129, 102, 213);
/* oklch */ color: oklch(59.0% 0.164 291.8);
Tailwind
colors: {
  custom: {
    50: '#aa92e2',
    500: '#8166d5',
    950: '#000000',
  },
}
SCSS
$custom: #8166d5;
$custom-light: #aa92e2;
$custom-dark: #000000;
JSON
{
  "hex": "#8166d5",
  "rgb": {
    "r": 129,
    "g": 102,
    "b": 213
  },
  "hsl": {
    "h": 254.595,
    "s": 56.923,
    "l": 61.765
  },
  "oklch": {
    "l": 0.5896,
    "c": 0.16396,
    "h": 291.8
  },
  "luminance": 0.18974
}

Semantic roles & 50–950 ramp

primary
#8166D5
secondary
#D6E0B7
accent
#C4219D
background
#FAF9FD
surface
#F4F1FB
border
#CECBD4
text
#100D15
muted
#7F7E83

Preview Lab

Preview with #8166D5

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

Preview Lab → · Contrast checker → · Palette generator →

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