#7840C8#7840C8
#7840C8 is a mid, vivid violet. Relative luminance 0.118; OKLCH L 51.4% C 0.200 H 297.8°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).
Color values
| HEX | #7840C8 |
|---|---|
| RGB | rgb(120, 64, 200) |
| HSL | hsl(265, 55%, 52%) |
| HSV | hsv(265, 68%, 78%) |
| CMYK | cmyk(40%, 68%, 0%, 21.6%) |
| CIE-LAB | lab(40.94, 51.96, -61.93) |
| CIE-LCH | lch(40.94, 80.84, 309.99°) |
| OKLab | oklab(51.37% 0.0932 -0.1767) |
| OKLCH | oklch(51.37% 0.2 297.8) |
| XYZ | xyz(20.0018, 11.8297, 55.8619) |
| Luminance | 0.1183 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 3.77
Bluish Purple
#703BE7
ΔE00 4.36
Blueviolet
#8A2BE2
ΔE00 4.71
Burple
#6832E3
ΔE00 4.94
Purpley Blue
#5F34E7
ΔE00 5.83
Darkorchid
#9932CC
ΔE00 5.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7840C8 #90C840
analogous
#404CC8 #7840C8 #BC40C8
triadic
#7840C8 #C87840 #40C878
tetradic
#7840C8 #C8404C #90C840 #40C8BC
square
#7840C8 #C8404C #90C840 #40C8BC
split-complementary
#7840C8 #C8BC40 #4CC840
monochromatic
#40206E #5C2D9D #7840C8 #9A70D6 #BB9FE3
Accessibility & contrast
On white
6.24
#7840C8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.37
#7840C8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7840C8
6.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7840C8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7840C8 | 1.00 | 6.24 | 3.37 | 6.24 |
| #FFFFFF | 6.24 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.37 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.24 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0061CC
Deuteranopia (green-blind)
#005FC5
Tritanopia (blue-blind)
#64607F
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #7840c8; /* rgb */ color: rgb(120, 64, 200); /* oklch */ color: oklch(51.4% 0.200 297.8);
Tailwind
colors: {
custom: {
50: '#a579da',
500: '#7840c8',
950: '#000000',
},
}SCSS
$custom: #7840c8; $custom-light: #a579da; $custom-dark: #000000;
JSON
{
"hex": "#7840c8",
"rgb": {
"r": 120,
"g": 64,
"b": 200
},
"hsl": {
"h": 264.706,
"s": 55.285,
"l": 51.765
},
"oklch": {
"l": 0.51373,
"c": 0.19983,
"h": 297.8
},
"luminance": 0.1183
}Semantic roles & 50–950 ramp
primary
#7840C8
secondary
#B7D094
accent
#DF49A1
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83