#9166E8#9166E8
#9166E8 is a mid, vivid violet. Relative luminance 0.213; OKLCH L 61.7% C 0.189 H 295.6°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).
Color values
| HEX | #9166E8 |
|---|---|
| RGB | rgb(145, 102, 232) |
| HSL | hsl(260, 74%, 65%) |
| HSV | hsv(260, 56%, 91%) |
| CMYK | cmyk(37.5%, 56%, 0%, 9%) |
| CIE-LAB | lab(53.33, 45.31, -60.04) |
| CIE-LCH | lch(53.33, 75.22, 307.04°) |
| OKLab | oklab(61.67% 0.0816 -0.1705) |
| OKLCH | oklch(61.67% 0.189 295.6) |
| XYZ | xyz(30.9901, 21.3481, 78.8161) |
| Luminance | 0.2135 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Mediumpurple
#9370DB
ΔE00 3.50
Mediumslateblue
#7B68EE
ΔE00 4.30
Lighter Purple
#A55AF4
ΔE00 4.35
Purpley
#8756E4
ΔE00 4.83
Lightish Purple
#A552E6
ΔE00 5.72
Light Urple
#B36FF6
ΔE00 6.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9166E8 #BDE866
analogous
#667CE8 #9166E8 #D266E8
triadic
#9166E8 #E89166 #66E891
tetradic
#9166E8 #E8667C #BDE866 #66E8D2
square
#9166E8 #E8667C #BDE866 #66E8D2
split-complementary
#9166E8 #E8D266 #7CE866
monochromatic
#4F1CB8 #6B31E0 #9166E8 #B79BF0 #DDD0F8
Accessibility & contrast
On white
3.98
#9166E8 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.27
#9166E8 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9166E8
5.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9166E8 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9166E8 | 1.00 | 3.98 | 5.27 | 5.27 |
| #FFFFFF | 3.98 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.27 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.27 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2480EC
Deuteranopia (green-blind)
#347EE5
Tritanopia (blue-blind)
#7C819D
Achromatopsia (no color)
#7F7F7F
Design tokens & code
CSS
--color: #9166e8; /* rgb */ color: rgb(145, 102, 232); /* oklch */ color: oklch(61.7% 0.189 295.6);
Tailwind
colors: {
custom: {
50: '#b693f0',
500: '#9166e8',
950: '#000000',
},
}SCSS
$custom: #9166e8; $custom-light: #b693f0; $custom-dark: #000000;
JSON
{
"hex": "#9166e8",
"rgb": {
"r": 145,
"g": 102,
"b": 232
},
"hsl": {
"h": 259.846,
"s": 73.864,
"l": 65.49
},
"oklch": {
"l": 0.61667,
"c": 0.189,
"h": 295.6
},
"luminance": 0.21349
}Semantic roles & 50–950 ramp
primary
#9166E8
secondary
#DCEBBF
accent
#D61094
background
#FBF9FE
surface
#F6F1FD
border
#D0CBD5
text
#120D17
muted
#817E85