#8240B5#8240B5
#8240B5 is a mid, vivid violet. Relative luminance 0.117; OKLCH L 51.1% C 0.181 H 307.1°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).
Color values
| HEX | #8240B5 |
|---|---|
| RGB | rgb(130, 64, 181) |
| HSL | hsl(274, 48%, 48%) |
| HSV | hsv(274, 65%, 71%) |
| CMYK | cmyk(28.2%, 64.6%, 0%, 29%) |
| CIE-LAB | lab(40.81, 49.39, -50.97) |
| CIE-LCH | lch(40.81, 70.97, 314.10°) |
| OKLab | oklab(51.12% 0.1089 -0.1442) |
| OKLCH | oklch(51.12% 0.181 307.1) |
| XYZ | xyz(19.3781, 11.7490, 44.9540) |
| Luminance | 0.1175 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purply
#983FB2
ΔE00 4.64
Darkorchid
#9932CC
ΔE00 4.87
Royal Purple
#7851A9
ΔE00 5.08
Blueviolet
#8A2BE2
ΔE00 6.63
Bluey Purple
#6241C7
ΔE00 6.93
Darkviolet
#9400D3
ΔE00 6.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8240B5 #73B540
analogous
#4740B5 #8240B5 #B540AD
triadic
#8240B5 #B58240 #40B582
tetradic
#8240B5 #B54740 #73B540 #40ADB5
square
#8240B5 #B54740 #73B540 #40ADB5
split-complementary
#8240B5 #ADB540 #40B547
monochromatic
#41205B #623088 #8240B5 #9F68CA #BC96DA
Accessibility & contrast
On white
6.27
#8240B5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.35
#8240B5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8240B5
6.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8240B5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8240B5 | 1.00 | 6.27 | 3.35 | 6.27 |
| #FFFFFF | 6.27 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.35 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.27 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005EB9
Deuteranopia (green-blind)
#2861B2
Tritanopia (blue-blind)
#7A5875
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #8240b5; /* rgb */ color: rgb(130, 64, 181); /* oklch */ color: oklch(51.1% 0.181 307.1);
Tailwind
colors: {
custom: {
50: '#aa79cc',
500: '#8240b5',
950: '#000000',
},
}SCSS
$custom: #8240b5; $custom-light: #aa79cc; $custom-dark: #000000;
JSON
{
"hex": "#8240b5",
"rgb": {
"r": 130,
"g": 64,
"b": 181
},
"hsl": {
"h": 273.846,
"s": 47.755,
"l": 48.039
},
"oklch": {
"l": 0.51123,
"c": 0.18071,
"h": 307.1
},
"luminance": 0.11749
}Semantic roles & 50–950 ramp
primary
#8240B5
secondary
#A5C58B
accent
#D7508B
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100913
muted
#7F7B82