#9166EF#9166EF
#9166EF is a light, vivid violet. Relative luminance 0.218; OKLCH L 62.1% C 0.198 H 294.4°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).
Color values
| HEX | #9166EF |
|---|---|
| RGB | rgb(145, 102, 239) |
| HSL | hsl(259, 81%, 67%) |
| HSV | hsv(259, 57%, 94%) |
| CMYK | cmyk(39.3%, 57.3%, 0%, 6.3%) |
| CIE-LAB | lab(53.76, 47.14, -63.26) |
| CIE-LCH | lch(53.76, 78.89, 306.69°) |
| OKLab | oklab(62.13% 0.0816 -0.1799) |
| OKLCH | oklch(62.13% 0.198 294.4) |
| XYZ | xyz(32.0043, 21.7538, 84.1573) |
| Luminance | 0.2175 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 4.03
Mediumpurple
#9370DB
ΔE00 4.12
Lighter Purple
#A55AF4
ΔE00 4.25
Purpley
#8756E4
ΔE00 5.10
Lightish Purple
#A552E6
ΔE00 6.01
Light Urple
#B36FF6
ΔE00 6.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9166EF #C4EF66
analogous
#6680EF #9166EF #D666EF
triadic
#9166EF #EF9166 #66EF91
tetradic
#9166EF #EF6680 #C4EF66 #66EFD6
square
#9166EF #EF6680 #C4EF66 #66EFD6
split-complementary
#9166EF #EFD666 #80EF66
monochromatic
#4C15C6 #692FE9 #9166EF #B99DF5 #E1D5FB
Accessibility & contrast
On white
3.92
#9166EF on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.35
#9166EF on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9166EF
5.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9166EF | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9166EF | 1.00 | 3.92 | 5.35 | 5.35 |
| #FFFFFF | 3.92 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.35 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.35 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1282F4
Deuteranopia (green-blind)
#287EEC
Tritanopia (blue-blind)
#7984A1
Achromatopsia (no color)
#808080
Design tokens & code
CSS
--color: #9166ef; /* rgb */ color: rgb(145, 102, 239); /* oklch */ color: oklch(62.1% 0.198 294.4);
Tailwind
colors: {
custom: {
50: '#b793f5',
500: '#9166ef',
950: '#000000',
},
}SCSS
$custom: #9166ef; $custom-light: #b793f5; $custom-dark: #000000;
JSON
{
"hex": "#9166ef",
"rgb": {
"r": 145,
"g": 102,
"b": 239
},
"hsl": {
"h": 258.832,
"s": 81.065,
"l": 66.863
},
"oklch": {
"l": 0.62128,
"c": 0.19756,
"h": 294.4
},
"luminance": 0.21754
}Semantic roles & 50–950 ramp
primary
#9166EF
secondary
#E1EEC2
accent
#DD089A
background
#FBF9FF
surface
#F6F1FE
border
#D0CBD6
text
#120D17
muted
#817E85