#8A66EC#8A66EC
#8A66EC is a mid, vivid violet. Relative luminance 0.210; OKLCH L 61.3% C 0.194 H 292.1°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).
Color values
| HEX | #8A66EC |
|---|---|
| RGB | rgb(138, 102, 236) |
| HSL | hsl(256, 78%, 66%) |
| HSV | hsv(256, 57%, 93%) |
| CMYK | cmyk(41.5%, 56.8%, 0%, 7.5%) |
| CIE-LAB | lab(52.91, 44.81, -63.00) |
| CIE-LCH | lch(52.91, 77.31, 305.42°) |
| OKLab | oklab(61.28% 0.0728 -0.1794) |
| OKLCH | oklch(61.28% 0.194 292.1) |
| XYZ | xyz(30.3688, 20.9613, 81.7865) |
| Luminance | 0.2096 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 2.84
Mediumpurple
#9370DB
ΔE00 4.35
Purpley
#8756E4
ΔE00 4.64
Lighter Purple
#A55AF4
ΔE00 5.33
Lightish Purple
#A552E6
ΔE00 6.74
Light Indigo
#6D5ACF
ΔE00 7.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A66EC #C8EC66
analogous
#6685EC #8A66EC #CD66EC
triadic
#8A66EC #EC8A66 #66EC8A
tetradic
#8A66EC #EC6685 #C8EC66 #66ECCD
square
#8A66EC #EC6685 #C8EC66 #66ECCD
split-complementary
#8A66EC #ECCD66 #85EC66
monochromatic
#4518C0 #6030E5 #8A66EC #B49CF3 #DDD3FA
Accessibility & contrast
On white
4.04
#8A66EC on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.19
#8A66EC on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A66EC
5.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A66EC | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A66EC | 1.00 | 4.04 | 5.19 | 5.19 |
| #FFFFFF | 4.04 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.19 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.19 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1380F0
Deuteranopia (green-blind)
#237CE9
Tritanopia (blue-blind)
#6F839F
Achromatopsia (no color)
#7E7E7E
Design tokens & code
CSS
--color: #8a66ec; /* rgb */ color: rgb(138, 102, 236); /* oklch */ color: oklch(61.3% 0.194 292.1);
Tailwind
colors: {
custom: {
50: '#b293f3',
500: '#8a66ec',
950: '#000000',
},
}SCSS
$custom: #8a66ec; $custom-light: #b293f3; $custom-dark: #000000;
JSON
{
"hex": "#8a66ec",
"rgb": {
"r": 138,
"g": 102,
"b": 236
},
"hsl": {
"h": 256.119,
"s": 77.907,
"l": 66.275
},
"oklch": {
"l": 0.61279,
"c": 0.19356,
"h": 292.1
},
"luminance": 0.20962
}Semantic roles & 50–950 ramp
primary
#8A66EC
secondary
#E1EDC1
accent
#DA0BA3
background
#FBF9FE
surface
#F6F1FD
border
#D0CBD5
text
#110D17
muted
#807E85