#8240C5#8240C5
#8240C5 is a mid, vivid violet. Relative luminance 0.124; OKLCH L 52.3% C 0.198 H 302.8°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).
Color values
| HEX | #8240C5 |
|---|---|
| RGB | rgb(130, 64, 197) |
| HSL | hsl(270, 53%, 51%) |
| HSV | hsv(270, 68%, 77%) |
| CMYK | cmyk(34%, 67.5%, 0%, 22.7%) |
| CIE-LAB | lab(41.91, 53.20, -58.56) |
| CIE-LCH | lch(41.91, 79.11, 312.25°) |
| OKLab | oklab(52.26% 0.1074 -0.1665) |
| OKLCH | oklch(52.26% 0.198 302.8) |
| XYZ | xyz(21.1150, 12.4438, 54.1020) |
| Luminance | 0.1244 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 4.19
Blueviolet
#8A2BE2
ΔE00 4.55
Bluey Purple
#6241C7
ΔE00 5.70
Bluish Purple
#703BE7
ΔE00 5.70
Purply
#983FB2
ΔE00 6.00
Darkviolet
#9400D3
ΔE00 6.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8240C5 #83C540
analogous
#4040C5 #8240C5 #C440C5
triadic
#8240C5 #C58240 #40C582
tetradic
#8240C5 #C54040 #83C540 #40C5C4
square
#8240C5 #C54040 #83C540 #40C5C4
split-complementary
#8240C5 #C5C440 #40C540
monochromatic
#45206A #632F99 #8240C5 #A16FD3 #BF9EE2
Accessibility & contrast
On white
6.02
#8240C5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.49
#8240C5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8240C5
6.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8240C5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8240C5 | 1.00 | 6.02 | 3.49 | 6.02 |
| #FFFFFF | 6.02 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.02 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0062C9
Deuteranopia (green-blind)
#0063C2
Tritanopia (blue-blind)
#755E7D
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #8240c5; /* rgb */ color: rgb(130, 64, 197); /* oklch */ color: oklch(52.3% 0.198 302.8);
Tailwind
colors: {
custom: {
50: '#ab79d7',
500: '#8240c5',
950: '#000000',
},
}SCSS
$custom: #8240c5; $custom-light: #ab79d7; $custom-dark: #000000;
JSON
{
"hex": "#8240c5",
"rgb": {
"r": 130,
"g": 64,
"b": 197
},
"hsl": {
"h": 269.774,
"s": 53.414,
"l": 51.176
},
"oklch": {
"l": 0.52262,
"c": 0.19812,
"h": 302.8
},
"luminance": 0.12444
}Semantic roles & 50–950 ramp
primary
#8240C5
secondary
#B1CE93
accent
#DD4B94
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110914
muted
#807B83