#9166BB#9166BB

#9166BB is a mid, vivid violet. Relative luminance 0.191; OKLCH L 59.0% C 0.133 H 306.1°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#9166BB
RGBrgb(145, 102, 187)
HSLhsl(270, 38%, 57%)
HSVhsv(270, 45%, 73%)
CMYKcmyk(22.5%, 45.5%, 0%, 26.7%)
CIE-LABlab(50.82, 34.04, -38.43)
CIE-LCHlch(50.82, 51.34, 311.53°)
OKLaboklab(58.99% 0.0782 -0.1073)
OKLCHoklch(58.99% 0.133 306.1)
XYZxyz(25.3962, 19.1105, 49.3549)
Luminance0.1911 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9166BB #90BB66
analogous
#6766BB #9166BB #BB66BB
triadic
#9166BB #BB9166 #66BB91
tetradic
#9166BB #BB6766 #90BB66 #66BBBB
square
#9166BB #BB6766 #90BB66 #66BBBB
split-complementary
#9166BB #BBBB66 #66BB67
monochromatic
#543373 #72469E #9166BB #AF90CE #CEBBE1

Accessibility & contrast

On white

4.36
#9166BB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.82
#9166BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9166BB
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9166BB#FFFFFF#000000##000000
##9166BB1.004.364.824.82
#FFFFFF4.361.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5078BE
Deuteranopia (green-blind)
#5B79B9
Tritanopia (blue-blind)
#8B7487
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #9166bb;
/* rgb */ color: rgb(145, 102, 187);
/* oklch */ color: oklch(59.0% 0.133 306.1);
Tailwind
colors: {
  custom: {
    50: '#b392d0',
    500: '#9166bb',
    950: '#000000',
  },
}
SCSS
$custom: #9166bb;
$custom-light: #b392d0;
$custom-dark: #000000;
JSON
{
  "hex": "#9166bb",
  "rgb": {
    "r": 145,
    "g": 102,
    "b": 187
  },
  "hsl": {
    "h": 270.353,
    "s": 38.462,
    "l": 56.667
  },
  "oklch": {
    "l": 0.5899,
    "c": 0.13272,
    "h": 306.1
  },
  "luminance": 0.1911
}

Semantic roles & 50–950 ramp

primary
#9166BB
secondary
#BED0AD
accent
#CE5993
background
#FBF9FC
surface
#F6F1F9
border
#D0CBD2
text
#110D14
muted
#807E82

Preview Lab

Preview with #9166BB

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

Preview Lab → · Contrast checker → · Palette generator →

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