#8A40B0#8A40B0
#8A40B0 is a mid, vivid violet. Relative luminance 0.122; OKLCH L 51.8% C 0.178 H 312.3°. Best body text is #FFFFFF at 6.10:1 contrast (WCAG AA passes).
Color values
| HEX | #8A40B0 |
|---|---|
| RGB | rgb(138, 64, 176) |
| HSL | hsl(280, 47%, 47%) |
| HSV | hsv(280, 64%, 69%) |
| CMYK | cmyk(21.6%, 63.6%, 0%, 31%) |
| CIE-LAB | lab(41.54, 50.12, -46.80) |
| CIE-LCH | lch(41.54, 68.57, 316.96°) |
| OKLab | oklab(51.77% 0.1197 -0.1317) |
| OKLCH | oklch(51.77% 0.178 312.3) |
| XYZ | xyz(20.1497, 12.2052, 42.3603) |
| Luminance | 0.1221 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purply
#983FB2
ΔE00 2.75
Darkorchid
#9932CC
ΔE00 4.72
Royal Purple
#7851A9
ΔE00 5.54
Medium Purple
#9E43A2
ΔE00 5.94
Barney
#AC1DB8
ΔE00 6.49
Purple (survey)
#7E1E9C
ΔE00 7.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A40B0 #66B040
analogous
#5240B0 #8A40B0 #B0409E
triadic
#8A40B0 #B08A40 #40B08A
tetradic
#8A40B0 #B05240 #66B040 #409EB0
square
#8A40B0 #B05240 #66B040 #409EB0
split-complementary
#8A40B0 #9EB040 #40B052
monochromatic
#441F56 #673083 #8A40B0 #A666C7 #C093D8
Accessibility & contrast
On white
6.10
#8A40B0 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.44
#8A40B0 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A40B0
6.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A40B0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A40B0 | 1.00 | 6.10 | 3.44 | 6.10 |
| #FFFFFF | 6.10 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.44 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.10 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0C5EB3
Deuteranopia (green-blind)
#3764AD
Tritanopia (blue-blind)
#865572
Achromatopsia (no color)
#626262
Design tokens & code
CSS
--color: #8a40b0; /* rgb */ color: rgb(138, 64, 176); /* oklch */ color: oklch(51.8% 0.178 312.3);
Tailwind
colors: {
custom: {
50: '#af79c8',
500: '#8a40b0',
950: '#000000',
},
}SCSS
$custom: #8a40b0; $custom-light: #af79c8; $custom-dark: #000000;
JSON
{
"hex": "#8a40b0",
"rgb": {
"r": 138,
"g": 64,
"b": 176
},
"hsl": {
"h": 279.643,
"s": 46.667,
"l": 47.059
},
"oklch": {
"l": 0.5177,
"c": 0.17795,
"h": 312.3
},
"luminance": 0.12205
}Semantic roles & 50–950 ramp
primary
#8A40B0
secondary
#9DC389
accent
#D6517F
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110913
muted
#807B82