#9166B7#9166B7

#9166B7 is a mid, vivid violet. Relative luminance 0.189; OKLCH L 58.8% C 0.128 H 307.4°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#9166B7
RGBrgb(145, 102, 183)
HSLhsl(272, 36%, 56%)
HSVhsv(272, 44%, 72%)
CMYKcmyk(20.8%, 44.3%, 0%, 28.2%)
CIE-LABlab(50.62, 33.10, -36.43)
CIE-LCHlch(50.62, 49.22, 312.26°)
OKLaboklab(58.78% 0.0775 -0.1015)
OKLCHoklch(58.78% 0.128 307.4)
XYZxyz(24.9740, 18.9416, 47.1310)
Luminance0.1894 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9166B7 #8CB766
analogous
#6866B7 #9166B7 #B766B4
triadic
#9166B7 #B79166 #66B791
tetradic
#9166B7 #B76866 #8CB766 #66B4B7
square
#9166B7 #B76866 #8CB766 #66B4B7
split-complementary
#9166B7 #B4B766 #66B768
monochromatic
#53346F #724898 #9166B7 #AF90CB #CDB9DE

Accessibility & contrast

On white

4.39
#9166B7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#9166B7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9166B7
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9166B7#FFFFFF#000000##000000
##9166B71.004.394.794.79
#FFFFFF4.391.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5377BA
Deuteranopia (green-blind)
#5D79B5
Tritanopia (blue-blind)
#8C7386
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #9166b7;
/* rgb */ color: rgb(145, 102, 183);
/* oklch */ color: oklch(58.8% 0.128 307.4);
Tailwind
colors: {
  custom: {
    50: '#b392cd',
    500: '#9166b7',
    950: '#000000',
  },
}
SCSS
$custom: #9166b7;
$custom-light: #b392cd;
$custom-dark: #000000;
JSON
{
  "hex": "#9166b7",
  "rgb": {
    "r": 145,
    "g": 102,
    "b": 183
  },
  "hsl": {
    "h": 271.852,
    "s": 36,
    "l": 55.882
  },
  "oklch": {
    "l": 0.58777,
    "c": 0.12768,
    "h": 307.4
  },
  "luminance": 0.18941
}

Semantic roles & 50–950 ramp

primary
#9166B7
secondary
#BBCDAC
accent
#CC5C90
background
#FBF9FC
surface
#F6F1F9
border
#D0CBD2
text
#110D13
muted
#807E82

Preview Lab

Preview with #9166B7

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

Preview Lab → · Contrast checker → · Palette generator →

#9166B7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva