#8A40C4#8A40C4
#8A40C4 is a mid, vivid violet. Relative luminance 0.131; OKLCH L 53.1% C 0.199 H 306.5°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).
Color values
| HEX | #8A40C4 |
|---|---|
| RGB | rgb(138, 64, 196) |
| HSL | hsl(274, 53%, 51%) |
| HSV | hsv(274, 67%, 77%) |
| CMYK | cmyk(29.6%, 67.3%, 0%, 23.1%) |
| CIE-LAB | lab(42.85, 54.62, -56.42) |
| CIE-LCH | lch(42.85, 78.53, 314.07°) |
| OKLab | oklab(53.13% 0.1183 -0.1599) |
| OKLCH | oklch(53.13% 0.199 306.5) |
| XYZ | xyz(22.2763, 13.0558, 53.5603) |
| Luminance | 0.1306 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.02
Purply
#983FB2
ΔE00 4.63
Blueviolet
#8A2BE2
ΔE00 4.86
Darkviolet
#9400D3
ΔE00 6.07
Violet (survey)
#9A0EEA
ΔE00 6.29
Royal Purple
#7851A9
ΔE00 6.42
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A40C4 #7AC440
analogous
#4840C4 #8A40C4 #C440BC
triadic
#8A40C4 #C48A40 #40C48A
tetradic
#8A40C4 #C44840 #7AC440 #40BCC4
square
#8A40C4 #C44840 #7AC440 #40BCC4
split-complementary
#8A40C4 #BCC440 #40C448
monochromatic
#492069 #6A2F98 #8A40C4 #A76FD2 #C39EE1
Accessibility & contrast
On white
5.82
#8A40C4 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.61
#8A40C4 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A40C4
5.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A40C4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A40C4 | 1.00 | 5.82 | 3.61 | 5.82 |
| #FFFFFF | 5.82 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.82 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0063C8
Deuteranopia (green-blind)
#1C66C1
Tritanopia (blue-blind)
#805D7D
Achromatopsia (no color)
#656565
Design tokens & code
CSS
--color: #8a40c4; /* rgb */ color: rgb(138, 64, 196); /* oklch */ color: oklch(53.1% 0.199 306.5);
Tailwind
colors: {
custom: {
50: '#b17ad7',
500: '#8a40c4',
950: '#000000',
},
}SCSS
$custom: #8a40c4; $custom-light: #b17ad7; $custom-dark: #000000;
JSON
{
"hex": "#8a40c4",
"rgb": {
"r": 138,
"g": 64,
"b": 196
},
"hsl": {
"h": 273.636,
"s": 52.8,
"l": 50.98
},
"oklch": {
"l": 0.53128,
"c": 0.19892,
"h": 306.5
},
"luminance": 0.13056
}Semantic roles & 50–950 ramp
primary
#8A40C4
secondary
#ACCD93
accent
#DC4C8B
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83