#8240B2#8240B2
#8240B2 is a mid, vivid violet. Relative luminance 0.116; OKLCH L 50.9% C 0.177 H 307.9°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).
Color values
| HEX | #8240B2 |
|---|---|
| RGB | rgb(130, 64, 178) |
| HSL | hsl(275, 47%, 47%) |
| HSV | hsv(275, 64%, 70%) |
| CMYK | cmyk(27%, 64%, 0%, 30.2%) |
| CIE-LAB | lab(40.62, 48.69, -49.52) |
| CIE-LCH | lch(40.62, 69.44, 314.52°) |
| OKLab | oklab(50.92% 0.1091 -0.1399) |
| OKLCH | oklch(50.92% 0.177 307.9) |
| XYZ | xyz(19.0736, 11.6272, 43.3503) |
| Luminance | 0.1163 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purply
#983FB2
ΔE00 4.48
Royal Purple
#7851A9
ΔE00 4.96
Darkorchid
#9932CC
ΔE00 5.14
Rebeccapurple
#663399
ΔE00 6.77
Purple (survey)
#7E1E9C
ΔE00 7.06
Blueviolet
#8A2BE2
ΔE00 7.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8240B2 #70B240
analogous
#4940B2 #8240B2 #B240A9
triadic
#8240B2 #B28240 #40B282
tetradic
#8240B2 #B24940 #70B240 #40A9B2
square
#8240B2 #B24940 #70B240 #40A9B2
split-complementary
#8240B2 #A9B240 #40B249
monochromatic
#402058 #613085 #8240B2 #9F67C8 #BC94D8
Accessibility & contrast
On white
6.32
#8240B2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.33
#8240B2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8240B2
6.32:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8240B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8240B2 | 1.00 | 6.32 | 3.33 | 6.32 |
| #FFFFFF | 6.32 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.33 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.32 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005DB6
Deuteranopia (green-blind)
#2B60AF
Tritanopia (blue-blind)
#7B5773
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #8240b2; /* rgb */ color: rgb(130, 64, 178); /* oklch */ color: oklch(50.9% 0.177 307.9);
Tailwind
colors: {
custom: {
50: '#aa79ca',
500: '#8240b2',
950: '#000000',
},
}SCSS
$custom: #8240b2; $custom-light: #aa79ca; $custom-dark: #000000;
JSON
{
"hex": "#8240b2",
"rgb": {
"r": 130,
"g": 64,
"b": 178
},
"hsl": {
"h": 274.737,
"s": 47.107,
"l": 47.451
},
"oklch": {
"l": 0.50918,
"c": 0.17744,
"h": 307.9
},
"luminance": 0.11627
}Semantic roles & 50–950 ramp
primary
#8240B2
secondary
#A2C48A
accent
#D75189
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100913
muted
#7F7B82