#9166ED#9166ED
#9166ED is a mid, vivid violet. Relative luminance 0.216; OKLCH L 62.0% C 0.195 H 294.7°. Best body text is #000000 at 5.33:1 contrast (WCAG AA passes).
Color values
| HEX | #9166ED |
|---|---|
| RGB | rgb(145, 102, 237) |
| HSL | hsl(259, 79%, 66%) |
| HSV | hsv(259, 57%, 93%) |
| CMYK | cmyk(38.8%, 57%, 0%, 7.1%) |
| CIE-LAB | lab(53.64, 46.62, -62.35) |
| CIE-LCH | lch(53.64, 77.85, 306.79°) |
| OKLab | oklab(62% 0.0817 -0.1772) |
| OKLCH | oklch(62% 0.195 294.7) |
| XYZ | xyz(31.7105, 21.6362, 82.6098) |
| Luminance | 0.2164 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Mediumpurple
#9370DB
ΔE00 3.94
Mediumslateblue
#7B68EE
ΔE00 4.08
Lighter Purple
#A55AF4
ΔE00 4.25
Purpley
#8756E4
ΔE00 5.00
Lightish Purple
#A552E6
ΔE00 5.91
Light Urple
#B36FF6
ΔE00 6.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9166ED #C2ED66
analogous
#667FED #9166ED #D566ED
triadic
#9166ED #ED9166 #66ED91
tetradic
#9166ED #ED667F #C2ED66 #66EDD5
square
#9166ED #ED667F #C2ED66 #66EDD5
split-complementary
#9166ED #EDD566 #7FED66
monochromatic
#4D17C2 #6A2FE7 #9166ED #B89DF3 #E0D4FA
Accessibility & contrast
On white
3.94
#9166ED on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.33
#9166ED on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9166ED
5.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9166ED | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9166ED | 1.00 | 3.94 | 5.33 | 5.33 |
| #FFFFFF | 3.94 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.33 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.33 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1981F1
Deuteranopia (green-blind)
#2C7EEA
Tritanopia (blue-blind)
#7A83A0
Achromatopsia (no color)
#808080
Design tokens & code
CSS
--color: #9166ed; /* rgb */ color: rgb(145, 102, 237); /* oklch */ color: oklch(62.0% 0.195 294.7);
Tailwind
colors: {
custom: {
50: '#b693f4',
500: '#9166ed',
950: '#000000',
},
}SCSS
$custom: #9166ed; $custom-light: #b693f4; $custom-dark: #000000;
JSON
{
"hex": "#9166ed",
"rgb": {
"r": 145,
"g": 102,
"b": 237
},
"hsl": {
"h": 259.111,
"s": 78.947,
"l": 66.471
},
"oklch": {
"l": 0.61995,
"c": 0.19513,
"h": 294.7
},
"luminance": 0.21637
}Semantic roles & 50–950 ramp
primary
#9166ED
secondary
#DFEDC2
accent
#DB0A99
background
#FBF9FF
surface
#F6F1FE
border
#D0CBD6
text
#120D17
muted
#817E85