#7F40C2#7F40C2
#7F40C2 is a mid, vivid violet. Relative luminance 0.121; OKLCH L 51.7% C 0.194 H 302.3°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).
Color values
| HEX | #7F40C2 |
|---|---|
| RGB | rgb(127, 64, 194) |
| HSL | hsl(269, 52%, 51%) |
| HSV | hsv(269, 67%, 76%) |
| CMYK | cmyk(34.5%, 67%, 0%, 23.9%) |
| CIE-LAB | lab(41.33, 51.85, -57.77) |
| CIE-LCH | lch(41.33, 77.63, 311.91°) |
| OKLab | oklab(51.7% 0.1037 -0.1643) |
| OKLCH | oklch(51.7% 0.194 302.3) |
| XYZ | xyz(20.3211, 12.0738, 52.2884) |
| Luminance | 0.1207 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 4.70
Blueviolet
#8A2BE2
ΔE00 4.93
Bluey Purple
#6241C7
ΔE00 5.29
Bluish Purple
#703BE7
ΔE00 5.79
Royal Purple
#7851A9
ΔE00 5.99
Purply
#983FB2
ΔE00 6.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F40C2 #83C240
analogous
#4042C2 #7F40C2 #C040C2
triadic
#7F40C2 #C27F40 #40C27F
tetradic
#7F40C2 #C24042 #83C240 #40C2C0
square
#7F40C2 #C24042 #83C240 #40C2C0
split-complementary
#7F40C2 #C2C040 #42C240
monochromatic
#432167 #613095 #7F40C2 #9E6ED1 #BD9DE0
Accessibility & contrast
On white
6.15
#7F40C2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.41
#7F40C2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F40C2
6.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F40C2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F40C2 | 1.00 | 6.15 | 3.41 | 6.15 |
| #FFFFFF | 6.15 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.41 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.15 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0060C6
Deuteranopia (green-blind)
#0061BF
Tritanopia (blue-blind)
#715E7C
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #7f40c2; /* rgb */ color: rgb(127, 64, 194); /* oklch */ color: oklch(51.7% 0.194 302.3);
Tailwind
colors: {
custom: {
50: '#a979d5',
500: '#7f40c2',
950: '#000000',
},
}SCSS
$custom: #7f40c2; $custom-light: #a979d5; $custom-dark: #000000;
JSON
{
"hex": "#7f40c2",
"rgb": {
"r": 127,
"g": 64,
"b": 194
},
"hsl": {
"h": 269.077,
"s": 51.587,
"l": 50.588
},
"oklch": {
"l": 0.51698,
"c": 0.19425,
"h": 302.3
},
"luminance": 0.12074
}Semantic roles & 50–950 ramp
primary
#7F40C2
secondary
#B0CC92
accent
#DB4D96
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83