#9166BC#9166BC

#9166BC is a mid, vivid violet. Relative luminance 0.192; OKLCH L 59.0% C 0.134 H 305.8°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#9166BC
RGBrgb(145, 102, 188)
HSLhsl(270, 39%, 57%)
HSVhsv(270, 46%, 74%)
CMYKcmyk(22.9%, 45.7%, 0%, 26.3%)
CIE-LABlab(50.87, 34.28, -38.93)
CIE-LCHlch(50.87, 51.87, 311.36°)
OKLaboklab(59.04% 0.0783 -0.1087)
OKLCHoklch(59.04% 0.134 305.8)
XYZxyz(25.5037, 19.1535, 49.9206)
Luminance0.1915 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9166BC #91BC66
analogous
#6666BC #9166BC #BC66BC
triadic
#9166BC #BC9166 #66BC91
tetradic
#9166BC #BC6666 #91BC66 #66BCBC
square
#9166BC #BC6666 #91BC66 #66BCBC
split-complementary
#9166BC #BCBC66 #66BC66
monochromatic
#543375 #72469F #9166BC #B091CF #CEBBE1

Accessibility & contrast

On white

4.35
#9166BC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#9166BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9166BC
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9166BC#FFFFFF#000000##000000
##9166BC1.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5078BF
Deuteranopia (green-blind)
#5B79BA
Tritanopia (blue-blind)
#8A7488
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #9166bc;
/* rgb */ color: rgb(145, 102, 188);
/* oklch */ color: oklch(59.0% 0.134 305.8);
Tailwind
colors: {
  custom: {
    50: '#b392d0',
    500: '#9166bc',
    950: '#000000',
  },
}
SCSS
$custom: #9166bc;
$custom-light: #b392d0;
$custom-dark: #000000;
JSON
{
  "hex": "#9166bc",
  "rgb": {
    "r": 145,
    "g": 102,
    "b": 188
  },
  "hsl": {
    "h": 270,
    "s": 39.091,
    "l": 56.863
  },
  "oklch": {
    "l": 0.59043,
    "c": 0.13398,
    "h": 305.8
  },
  "luminance": 0.19153
}

Semantic roles & 50–950 ramp

primary
#9166BC
secondary
#BFD0AD
accent
#CF5994
background
#FBF9FC
surface
#F6F1F9
border
#D0CBD2
text
#110D14
muted
#807E82

Preview Lab

Preview with #9166BC

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

Preview Lab → · Contrast checker → · Palette generator →

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