#8A40C3#8A40C3
#8A40C3 is a mid, vivid violet. Relative luminance 0.130; OKLCH L 53.1% C 0.198 H 306.7°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).
Color values
| HEX | #8A40C3 |
|---|---|
| RGB | rgb(138, 64, 195) |
| HSL | hsl(274, 52%, 51%) |
| HSV | hsv(274, 67%, 76%) |
| CMYK | cmyk(29.2%, 67.2%, 0%, 23.5%) |
| CIE-LAB | lab(42.78, 54.39, -55.95) |
| CIE-LCH | lch(42.78, 78.03, 314.19°) |
| OKLab | oklab(53.06% 0.1184 -0.1585) |
| OKLCH | oklch(53.06% 0.198 306.7) |
| XYZ | xyz(22.1629, 13.0104, 52.9629) |
| Luminance | 0.1301 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.05
Purply
#983FB2
ΔE00 4.51
Blueviolet
#8A2BE2
ΔE00 4.99
Darkviolet
#9400D3
ΔE00 6.10
Royal Purple
#7851A9
ΔE00 6.35
Violet (survey)
#9A0EEA
ΔE00 6.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A40C3 #79C340
analogous
#4840C3 #8A40C3 #C340BA
triadic
#8A40C3 #C38A40 #40C38A
tetradic
#8A40C3 #C34840 #79C340 #40BAC3
square
#8A40C3 #C34840 #79C340 #40BAC3
split-complementary
#8A40C3 #BAC340 #40C348
monochromatic
#492168 #6A2F97 #8A40C3 #A76FD2 #C39DE0
Accessibility & contrast
On white
5.83
#8A40C3 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.60
#8A40C3 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A40C3
5.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A40C3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A40C3 | 1.00 | 5.83 | 3.60 | 5.83 |
| #FFFFFF | 5.83 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.83 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0063C7
Deuteranopia (green-blind)
#1E66C0
Tritanopia (blue-blind)
#805D7C
Achromatopsia (no color)
#656565
Design tokens & code
CSS
--color: #8a40c3; /* rgb */ color: rgb(138, 64, 195); /* oklch */ color: oklch(53.1% 0.198 306.7);
Tailwind
colors: {
custom: {
50: '#b17ad6',
500: '#8a40c3',
950: '#000000',
},
}SCSS
$custom: #8a40c3; $custom-light: #b17ad6; $custom-dark: #000000;
JSON
{
"hex": "#8a40c3",
"rgb": {
"r": 138,
"g": 64,
"b": 195
},
"hsl": {
"h": 273.893,
"s": 52.191,
"l": 50.784
},
"oklch": {
"l": 0.53057,
"c": 0.19786,
"h": 306.7
},
"luminance": 0.1301
}Semantic roles & 50–950 ramp
primary
#8A40C3
secondary
#ACCC92
accent
#DC4C8B
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83