#9166B4#9166B4

#9166B4 is a mid, vivid violet. Relative luminance 0.188; OKLCH L 58.6% C 0.124 H 308.4°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#9166B4
RGBrgb(145, 102, 180)
HSLhsl(273, 34%, 55%)
HSVhsv(273, 43%, 71%)
CMYKcmyk(19.4%, 43.3%, 0%, 29.4%)
CIE-LABlab(50.47, 32.40, -34.92)
CIE-LCHlch(50.47, 47.63, 312.85°)
OKLaboklab(58.62% 0.077 -0.0971)
OKLCHoklch(58.62% 0.124 308.4)
XYZxyz(24.6651, 18.8181, 45.5040)
Luminance0.1882 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9166B4 #89B466
analogous
#6A66B4 #9166B4 #B466B0
triadic
#9166B4 #B49166 #66B491
tetradic
#9166B4 #B46A66 #89B466 #66B0B4
square
#9166B4 #B46A66 #89B466 #66B0B4
split-complementary
#9166B4 #B0B466 #66B46A
monochromatic
#53346B #724994 #9166B4 #AF8FC8 #CCB8DC

Accessibility & contrast

On white

4.41
#9166B4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#9166B4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9166B4
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9166B4#FFFFFF#000000##000000
##9166B41.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5476B7
Deuteranopia (green-blind)
#5F79B2
Tritanopia (blue-blind)
#8C7284
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #9166b4;
/* rgb */ color: rgb(145, 102, 180);
/* oklch */ color: oklch(58.6% 0.124 308.4);
Tailwind
colors: {
  custom: {
    50: '#b392cb',
    500: '#9166b4',
    950: '#000000',
  },
}
SCSS
$custom: #9166b4;
$custom-light: #b392cb;
$custom-dark: #000000;
JSON
{
  "hex": "#9166b4",
  "rgb": {
    "r": 145,
    "g": 102,
    "b": 180
  },
  "hsl": {
    "h": 273.077,
    "s": 34.211,
    "l": 55.294
  },
  "oklch": {
    "l": 0.58621,
    "c": 0.12391,
    "h": 308.4
  },
  "luminance": 0.18818
}

Semantic roles & 50–950 ramp

primary
#9166B4
secondary
#B9CBAB
accent
#CA5E8E
background
#FBF9FC
surface
#F6F1F8
border
#D0CBD1
text
#110D13
muted
#807E82

Preview Lab

Preview with #9166B4

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

Preview Lab → · Contrast checker → · Palette generator →

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