#9166C8#9166C8
#9166C8 is a mid, vivid violet. Relative luminance 0.197; OKLCH L 59.7% C 0.149 H 302.4°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).
Color values
| HEX | #9166C8 |
|---|---|
| RGB | rgb(145, 102, 200) |
| HSL | hsl(266, 47%, 59%) |
| HSV | hsv(266, 49%, 78%) |
| CMYK | cmyk(27.5%, 49%, 0%, 21.6%) |
| CIE-LAB | lab(51.49, 37.18, -44.85) |
| CIE-LCH | lch(51.49, 58.26, 309.66°) |
| OKLab | oklab(59.71% 0.0798 -0.1259) |
| OKLCH | oklch(59.71% 0.149 302.4) |
| XYZ | xyz(26.8514, 19.6926, 57.0188) |
| Luminance | 0.1969 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Amethyst
#9B5FC0
ΔE00 3.52
Deep Lavender
#8D5EB7
ΔE00 3.78
Deep Lilac
#966EBD
ΔE00 3.89
Mediumpurple
#9370DB
ΔE00 4.30
Purpley
#8756E4
ΔE00 6.75
Lightish Purple
#A552E6
ΔE00 6.81
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9166C8 #9DC866
analogous
#666CC8 #9166C8 #C266C8
triadic
#9166C8 #C89166 #66C891
tetradic
#9166C8 #C8666C #9DC866 #66C8C2
square
#9166C8 #C8666C #9DC866 #66C8C2
split-complementary
#9166C8 #C8C266 #6CC866
monochromatic
#552F84 #7140B1 #9166C8 #B193D8 #D2C0E8
Accessibility & contrast
On white
4.25
#9166C8 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.94
#9166C8 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9166C8
4.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9166C8 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9166C8 | 1.00 | 4.25 | 4.94 | 4.94 |
| #FFFFFF | 4.25 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.94 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.94 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#487ACB
Deuteranopia (green-blind)
#537AC6
Tritanopia (blue-blind)
#87788E
Achromatopsia (no color)
#7B7B7B
Design tokens & code
CSS
--color: #9166c8; /* rgb */ color: rgb(145, 102, 200); /* oklch */ color: oklch(59.7% 0.149 302.4);
Tailwind
colors: {
custom: {
50: '#b492d9',
500: '#9166c8',
950: '#000000',
},
}SCSS
$custom: #9166c8; $custom-light: #b492d9; $custom-dark: #000000;
JSON
{
"hex": "#9166c8",
"rgb": {
"r": 145,
"g": 102,
"b": 200
},
"hsl": {
"h": 266.327,
"s": 47.115,
"l": 59.216
},
"oklch": {
"l": 0.5971,
"c": 0.14912,
"h": 302.4
},
"luminance": 0.19693
}Semantic roles & 50–950 ramp
primary
#9166C8
secondary
#C7D8B2
accent
#D7519C
background
#FBF9FD
surface
#F6F1FA
border
#D0CBD3
text
#110D15
muted
#807E83