#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 |
|---|---|
| RGB | rgb(145, 102, 183) |
| HSL | hsl(272, 36%, 56%) |
| HSV | hsv(272, 44%, 72%) |
| CMYK | cmyk(20.8%, 44.3%, 0%, 28.2%) |
| CIE-LAB | lab(50.62, 33.10, -36.43) |
| CIE-LCH | lch(50.62, 49.22, 312.26°) |
| OKLab | oklab(58.78% 0.0775 -0.1015) |
| OKLCH | oklch(58.78% 0.128 307.4) |
| XYZ | xyz(24.9740, 18.9416, 47.1310) |
| Luminance | 0.1894 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lavender
#8D5EB7
ΔE00 2.69
Deep Lilac
#966EBD
ΔE00 2.73
Amethyst
#9B5FC0
ΔE00 3.19
Soft Purple
#A66FB5
ΔE00 6.01
Dark Lilac
#9C6DA5
ΔE00 6.61
Mediumpurple
#9370DB
ΔE00 7.04
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 |
|---|---|---|---|---|
| ##9166B7 | 1.00 | 4.39 | 4.79 | 4.79 |
| #FFFFFF | 4.39 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.79 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.79 | 21.00 | 1.00 | 1.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