#8A40C0#8A40C0
#8A40C0 is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.8% C 0.195 H 307.5°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).
Color values
| HEX | #8A40C0 |
|---|---|
| RGB | rgb(138, 64, 192) |
| HSL | hsl(275, 50%, 50%) |
| HSV | hsv(275, 67%, 75%) |
| CMYK | cmyk(28.1%, 66.7%, 0%, 24.7%) |
| CIE-LAB | lab(42.58, 53.71, -54.53) |
| CIE-LCH | lch(42.58, 76.53, 314.57°) |
| OKLab | oklab(52.85% 0.1187 -0.1544) |
| OKLCH | oklch(52.85% 0.195 307.5) |
| XYZ | xyz(21.8271, 12.8761, 51.1944) |
| Luminance | 0.1288 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.17
Purply
#983FB2
ΔE00 4.15
Blueviolet
#8A2BE2
ΔE00 5.37
Royal Purple
#7851A9
ΔE00 6.13
Darkviolet
#9400D3
ΔE00 6.21
Violet (survey)
#9A0EEA
ΔE00 6.70
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A40C0 #76C040
analogous
#4A40C0 #8A40C0 #C040B6
triadic
#8A40C0 #C08A40 #40C08A
tetradic
#8A40C0 #C04A40 #76C040 #40B6C0
square
#8A40C0 #C04A40 #76C040 #40B6C0
split-complementary
#8A40C0 #B6C040 #40C04A
monochromatic
#482164 #693092 #8A40C0 #A66ECF #C29CDE
Accessibility & contrast
On white
5.87
#8A40C0 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.58
#8A40C0 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A40C0
5.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A40C0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A40C0 | 1.00 | 5.87 | 3.58 | 5.87 |
| #FFFFFF | 5.87 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.87 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0062C4
Deuteranopia (green-blind)
#2465BD
Tritanopia (blue-blind)
#815B7B
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #8a40c0; /* rgb */ color: rgb(138, 64, 192); /* oklch */ color: oklch(52.8% 0.195 307.5);
Tailwind
colors: {
custom: {
50: '#b07ad4',
500: '#8a40c0',
950: '#000000',
},
}SCSS
$custom: #8a40c0; $custom-light: #b07ad4; $custom-dark: #000000;
JSON
{
"hex": "#8a40c0",
"rgb": {
"r": 138,
"g": 64,
"b": 192
},
"hsl": {
"h": 274.688,
"s": 50.394,
"l": 50.196
},
"oklch": {
"l": 0.52847,
"c": 0.19472,
"h": 307.5
},
"luminance": 0.12876
}Semantic roles & 50–950 ramp
primary
#8A40C0
secondary
#A9CB91
accent
#DA4E89
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110914
muted
#807B83