#8166B4#8166B4

#8166B4 is a mid, moderate violet. Relative luminance 0.175; OKLCH L 57.0% C 0.120 H 298.5°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#8166B4
RGBrgb(129, 102, 180)
HSLhsl(261, 34%, 55%)
HSVhsv(261, 43%, 71%)
CMYKcmyk(28.3%, 43.3%, 0%, 29.4%)
CIE-LABlab(48.84, 27.70, -37.60)
CIE-LCHlch(48.84, 46.70, 306.38°)
OKLaboklab(57.01% 0.0571 -0.1052)
OKLCHoklch(57.01% 0.12 298.5)
XYZxyz(22.0409, 17.4650, 45.3810)
Luminance0.1746 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8166B4 #99B466
analogous
#6672B4 #8166B4 #A866B4
triadic
#8166B4 #B48166 #66B481
tetradic
#8166B4 #B46672 #99B466 #66B4A8
square
#8166B4 #B46672 #99B466 #66B4A8
split-complementary
#8166B4 #B4A866 #72B466
monochromatic
#47346B #634994 #8166B4 #A38FC8 #C5B8DC

Accessibility & contrast

On white

4.67
#8166B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#8166B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8166B4
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8166B4#FFFFFF#000000##FFFFFF
##8166B41.004.674.494.67
#FFFFFF4.671.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5074B7
Deuteranopia (green-blind)
#5573B2
Tritanopia (blue-blind)
#777484
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8166b4;
/* rgb */ color: rgb(129, 102, 180);
/* oklch */ color: oklch(57.0% 0.120 298.5);
Tailwind
colors: {
  custom: {
    50: '#a792cb',
    500: '#8166b4',
    950: '#000000',
  },
}
SCSS
$custom: #8166b4;
$custom-light: #a792cb;
$custom-dark: #000000;
JSON
{
  "hex": "#8166b4",
  "rgb": {
    "r": 129,
    "g": 102,
    "b": 180
  },
  "hsl": {
    "h": 260.769,
    "s": 34.211,
    "l": 55.294
  },
  "oklch": {
    "l": 0.57012,
    "c": 0.11974,
    "h": 298.5
  },
  "luminance": 0.17465
}

Semantic roles & 50–950 ramp

primary
#8166B4
secondary
#C0CBAB
accent
#CA5EA5
background
#FAF9FC
surface
#F4F1F8
border
#CECBD1
text
#100D13
muted
#7F7E82

Preview Lab

Preview with #8166B4

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

Preview Lab → · Contrast checker → · Palette generator →

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