#9166B2#9166B2
#9166B2 is a mid, vivid violet. Relative luminance 0.187; OKLCH L 58.5% C 0.121 H 309.1°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).
Color values
| HEX | #9166B2 |
|---|---|
| RGB | rgb(145, 102, 178) |
| HSL | hsl(274, 33%, 55%) |
| HSV | hsv(274, 43%, 70%) |
| CMYK | cmyk(18.5%, 42.7%, 0%, 30.2%) |
| CIE-LAB | lab(50.38, 31.93, -33.91) |
| CIE-LCH | lch(50.38, 46.58, 313.28°) |
| OKLab | oklab(58.52% 0.0766 -0.0942) |
| OKLCH | oklch(58.52% 0.121 309.1) |
| XYZ | xyz(24.4628, 18.7372, 44.4388) |
| Luminance | 0.1874 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lilac
#966EBD
ΔE00 3.08
Deep Lavender
#8D5EB7
ΔE00 3.15
Amethyst
#9B5FC0
ΔE00 3.76
Soft Purple
#A66FB5
ΔE00 5.60
Dark Lilac
#9C6DA5
ΔE00 5.73
Dark Lavender
#856798
ΔE00 6.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9166B2 #87B266
analogous
#6B66B2 #9166B2 #B266AD
triadic
#9166B2 #B29166 #66B291
tetradic
#9166B2 #B26B66 #87B266 #66ADB2
square
#9166B2 #B26B66 #87B266 #66ADB2
split-complementary
#9166B2 #ADB266 #66B26B
monochromatic
#523569 #724992 #9166B2 #AE8FC6 #CCB7DB
Accessibility & contrast
On white
4.42
#9166B2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.75
#9166B2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9166B2
4.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9166B2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9166B2 | 1.00 | 4.42 | 4.75 | 4.75 |
| #FFFFFF | 4.42 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.75 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.75 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5576B5
Deuteranopia (green-blind)
#6079B0
Tritanopia (blue-blind)
#8D7283
Achromatopsia (no color)
#787878
Design tokens & code
CSS
--color: #9166b2; /* rgb */ color: rgb(145, 102, 178); /* oklch */ color: oklch(58.5% 0.121 309.1);
Tailwind
colors: {
custom: {
50: '#b292c9',
500: '#9166b2',
950: '#000000',
},
}SCSS
$custom: #9166b2; $custom-light: #b292c9; $custom-dark: #000000;
JSON
{
"hex": "#9166b2",
"rgb": {
"r": 145,
"g": 102,
"b": 178
},
"hsl": {
"h": 273.947,
"s": 33.043,
"l": 54.902
},
"oklch": {
"l": 0.58518,
"c": 0.12141,
"h": 309.1
},
"luminance": 0.18737
}Semantic roles & 50–950 ramp
primary
#9166B2
secondary
#B8CAAA
accent
#C95F8D
background
#FBF9FC
surface
#F6F1F8
border
#D0CBD1
text
#110D13
muted
#807E82