#8166DB#8166DB

#8166DB is a mid, vivid violet. Relative luminance 0.193; OKLCH L 59.3% C 0.172 H 290.9°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#8166DB
RGBrgb(129, 102, 219)
HSLhsl(254, 62%, 63%)
HSVhsv(254, 53%, 86%)
CMYKcmyk(41.1%, 53.4%, 0%, 14.1%)
CIE-LABlab(51.02, 38.13, -56.51)
CIE-LCHlch(51.02, 68.17, 304.01°)
OKLaboklab(59.35% 0.0612 -0.1605)
OKLCHoklch(59.35% 0.172 290.9)
XYZxyz(26.5873, 19.2835, 69.3254)
Luminance0.1928 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8166DB #C0DB66
analogous
#6685DB #8166DB #BB66DB
triadic
#8166DB #DB8166 #66DB81
tetradic
#8166DB #DB6685 #C0DB66 #66DBBB
square
#8166DB #DB6685 #C0DB66 #66DBBB
split-complementary
#8166DB #DBBB66 #85DB66
monochromatic
#4226A1 #5834CF #8166DB #AA98E7 #D3C9F2

Accessibility & contrast

On white

4.32
#8166DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#8166DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8166DB
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8166DB#FFFFFF#000000##000000
##8166DB1.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#2F7CDF
Deuteranopia (green-blind)
#3377D8
Tritanopia (blue-blind)
#687F97
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #8166db;
/* rgb */ color: rgb(129, 102, 219);
/* oklch */ color: oklch(59.3% 0.172 290.9);
Tailwind
colors: {
  custom: {
    50: '#aa92e7',
    500: '#8166db',
    950: '#000000',
  },
}
SCSS
$custom: #8166db;
$custom-light: #aa92e7;
$custom-dark: #000000;
JSON
{
  "hex": "#8166db",
  "rgb": {
    "r": 129,
    "g": 102,
    "b": 219
  },
  "hsl": {
    "h": 253.846,
    "s": 61.905,
    "l": 62.941
  },
  "oklch": {
    "l": 0.59345,
    "c": 0.1718,
    "h": 290.9
  },
  "luminance": 0.19284
}

Semantic roles & 50–950 ramp

primary
#8166DB
secondary
#DAE3B9
accent
#CA1CA2
background
#FAF9FE
surface
#F4F1FC
border
#CECBD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #8166DB

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

Preview Lab → · Contrast checker → · Palette generator →

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