#8A40B8#8A40B8
#8A40B8 is a mid, vivid violet. Relative luminance 0.125; OKLCH L 52.3% C 0.186 H 309.8°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).
Color values
| HEX | #8A40B8 |
|---|---|
| RGB | rgb(138, 64, 184) |
| HSL | hsl(277, 48%, 49%) |
| HSV | hsv(277, 65%, 72%) |
| CMYK | cmyk(25%, 65.2%, 0%, 27.8%) |
| CIE-LAB | lab(42.05, 51.89, -50.69) |
| CIE-LCH | lch(42.05, 72.55, 315.67°) |
| OKLab | oklab(52.3% 0.1193 -0.1431) |
| OKLCH | oklch(52.3% 0.186 309.8) |
| XYZ | xyz(20.9647, 12.5312, 46.6525) |
| Luminance | 0.1253 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purply
#983FB2
ΔE00 3.30
Darkorchid
#9932CC
ΔE00 3.78
Royal Purple
#7851A9
ΔE00 5.69
Blueviolet
#8A2BE2
ΔE00 6.48
Darkviolet
#9400D3
ΔE00 6.69
Barney
#AC1DB8
ΔE00 6.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A40B8 #6EB840
analogous
#4E40B8 #8A40B8 #B840AA
triadic
#8A40B8 #B88A40 #40B88A
tetradic
#8A40B8 #B84E40 #6EB840 #40AAB8
square
#8A40B8 #B84E40 #6EB840 #40AAB8
split-complementary
#8A40B8 #AAB840 #40B84E
monochromatic
#46205D #68308B #8A40B8 #A66ACB #C197DB
Accessibility & contrast
On white
5.99
#8A40B8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.51
#8A40B8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A40B8
5.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A40B8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A40B8 | 1.00 | 5.99 | 3.51 | 5.99 |
| #FFFFFF | 5.99 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.99 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0060BC
Deuteranopia (green-blind)
#2F64B5
Tritanopia (blue-blind)
#845876
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #8a40b8; /* rgb */ color: rgb(138, 64, 184); /* oklch */ color: oklch(52.3% 0.186 309.8);
Tailwind
colors: {
custom: {
50: '#b07ace',
500: '#8a40b8',
950: '#000000',
},
}SCSS
$custom: #8a40b8; $custom-light: #b07ace; $custom-dark: #000000;
JSON
{
"hex": "#8a40b8",
"rgb": {
"r": 138,
"g": 64,
"b": 184
},
"hsl": {
"h": 277,
"s": 48.387,
"l": 48.627
},
"oklch": {
"l": 0.52299,
"c": 0.18632,
"h": 309.8
},
"luminance": 0.12531
}Semantic roles & 50–950 ramp
primary
#8A40B8
secondary
#A3C78D
accent
#D85084
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110914
muted
#807B82