#9166CC#9166CC
#9166CC is a mid, vivid violet. Relative luminance 0.199; OKLCH L 59.9% C 0.154 H 301.4°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).
Color values
| HEX | #9166CC |
|---|---|
| RGB | rgb(145, 102, 204) |
| HSL | hsl(265, 50%, 60%) |
| HSV | hsv(265, 50%, 80%) |
| CMYK | cmyk(28.9%, 50%, 0%, 20%) |
| CIE-LAB | lab(51.70, 38.17, -46.79) |
| CIE-LCH | lch(51.70, 60.39, 309.21°) |
| OKLab | oklab(59.94% 0.0802 -0.1316) |
| OKLCH | oklch(59.94% 0.154 301.4) |
| XYZ | xyz(27.3250, 19.8820, 59.5131) |
| Luminance | 0.1988 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Mediumpurple
#9370DB
ΔE00 3.81
Amethyst
#9B5FC0
ΔE00 3.97
Deep Lavender
#8D5EB7
ΔE00 4.35
Deep Lilac
#966EBD
ΔE00 4.42
Purpley
#8756E4
ΔE00 6.25
Lightish Purple
#A552E6
ΔE00 6.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9166CC #A1CC66
analogous
#666ECC #9166CC #C466CC
triadic
#9166CC #CC9166 #66CC91
tetradic
#9166CC #CC666E #A1CC66 #66CCC4
square
#9166CC #CC666E #A1CC66 #66CCC4
split-complementary
#9166CC #CCC466 #6ECC66
monochromatic
#552E8A #713DB8 #9166CC #B294DB #D3C2EB
Accessibility & contrast
On white
4.22
#9166CC on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.98
#9166CC on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9166CC
4.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9166CC | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9166CC | 1.00 | 4.22 | 4.98 | 4.98 |
| #FFFFFF | 4.22 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.98 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.98 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#457BD0
Deuteranopia (green-blind)
#507BCA
Tritanopia (blue-blind)
#86798F
Achromatopsia (no color)
#7B7B7B
Design tokens & code
CSS
--color: #9166cc; /* rgb */ color: rgb(145, 102, 204); /* oklch */ color: oklch(59.9% 0.154 301.4);
Tailwind
colors: {
custom: {
50: '#b493dc',
500: '#9166cc',
950: '#000000',
},
}SCSS
$custom: #9166cc; $custom-light: #b493dc; $custom-dark: #000000;
JSON
{
"hex": "#9166cc",
"rgb": {
"r": 145,
"g": 102,
"b": 204
},
"hsl": {
"h": 265.294,
"s": 50,
"l": 60
},
"oklch": {
"l": 0.59941,
"c": 0.15415,
"h": 301.4
},
"luminance": 0.19882
}Semantic roles & 50–950 ramp
primary
#9166CC
secondary
#CADBB3
accent
#DA4E9F
background
#FBF9FD
surface
#F6F1FB
border
#D0CBD4
text
#110D15
muted
#807E83