#9166CF#9166CF
#9166CF is a mid, vivid violet. Relative luminance 0.200; OKLCH L 60.1% C 0.158 H 300.7°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).
Color values
| HEX | #9166CF |
|---|---|
| RGB | rgb(145, 102, 207) |
| HSL | hsl(265, 52%, 61%) |
| HSV | hsv(265, 51%, 81%) |
| CMYK | cmyk(30%, 50.7%, 0%, 18.8%) |
| CIE-LAB | lab(51.87, 38.92, -48.24) |
| CIE-LCH | lch(51.87, 61.98, 308.89°) |
| OKLab | oklab(60.12% 0.0805 -0.1359) |
| OKLCH | oklch(60.12% 0.158 300.7) |
| XYZ | xyz(27.6883, 20.0273, 61.4263) |
| Luminance | 0.2003 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Mediumpurple
#9370DB
ΔE00 3.50
Amethyst
#9B5FC0
ΔE00 4.34
Deep Lavender
#8D5EB7
ΔE00 4.79
Deep Lilac
#966EBD
ΔE00 4.83
Purpley
#8756E4
ΔE00 5.91
Lightish Purple
#A552E6
ΔE00 6.19
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9166CF #A4CF66
analogous
#666FCF #9166CF #C566CF
triadic
#9166CF #CF9166 #66CF91
tetradic
#9166CF #CF666F #A4CF66 #66CFC5
square
#9166CF #CF666F #A4CF66 #66CFC5
split-complementary
#9166CF #CFC566 #6FCF66
monochromatic
#542D8E #703BBD #9166CF #B295DE #D4C3EC
Accessibility & contrast
On white
4.20
#9166CF on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.01
#9166CF on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9166CF
5.01:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9166CF | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9166CF | 1.00 | 4.20 | 5.01 | 5.01 |
| #FFFFFF | 4.20 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.01 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.01 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#427BD3
Deuteranopia (green-blind)
#4E7BCC
Tritanopia (blue-blind)
#857A91
Achromatopsia (no color)
#7C7C7C
Design tokens & code
CSS
--color: #9166cf; /* rgb */ color: rgb(145, 102, 207); /* oklch */ color: oklch(60.1% 0.158 300.7);
Tailwind
colors: {
custom: {
50: '#b493de',
500: '#9166cf',
950: '#000000',
},
}SCSS
$custom: #9166cf; $custom-light: #b493de; $custom-dark: #000000;
JSON
{
"hex": "#9166cf",
"rgb": {
"r": 145,
"g": 102,
"b": 207
},
"hsl": {
"h": 264.571,
"s": 52.239,
"l": 60.588
},
"oklch": {
"l": 0.60117,
"c": 0.15792,
"h": 300.7
},
"luminance": 0.20027
}Semantic roles & 50–950 ramp
primary
#9166CF
secondary
#CCDCB4
accent
#C02681
background
#FBF9FD
surface
#F6F1FB
border
#D0CBD4
text
#110D15
muted
#807E83