#7F40C1#7F40C1
#7F40C1 is a mid, vivid violet. Relative luminance 0.120; OKLCH L 51.6% C 0.193 H 302.5°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).
Color values
| HEX | #7F40C1 |
|---|---|
| RGB | rgb(127, 64, 193) |
| HSL | hsl(269, 51%, 50%) |
| HSV | hsv(269, 67%, 76%) |
| CMYK | cmyk(34.2%, 66.8%, 0%, 24.3%) |
| CIE-LAB | lab(41.26, 51.61, -57.30) |
| CIE-LCH | lch(41.26, 77.12, 312.01°) |
| OKLab | oklab(51.63% 0.1038 -0.1629) |
| OKLCH | oklch(51.63% 0.193 302.5) |
| XYZ | xyz(20.2092, 12.0290, 51.6989) |
| Luminance | 0.1203 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 4.71
Blueviolet
#8A2BE2
ΔE00 5.05
Bluey Purple
#6241C7
ΔE00 5.35
Royal Purple
#7851A9
ΔE00 5.90
Bluish Purple
#703BE7
ΔE00 5.93
Purply
#983FB2
ΔE00 6.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F40C1 #82C140
analogous
#4042C1 #7F40C1 #BF40C1
triadic
#7F40C1 #C17F40 #40C17F
tetradic
#7F40C1 #C14042 #82C140 #40C1BF
square
#7F40C1 #C14042 #82C140 #40C1BF
split-complementary
#7F40C1 #C1BF40 #42C140
monochromatic
#432166 #613094 #7F40C1 #9E6ED0 #BD9CDF
Accessibility & contrast
On white
6.17
#7F40C1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.41
#7F40C1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F40C1
6.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F40C1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F40C1 | 1.00 | 6.17 | 3.41 | 6.17 |
| #FFFFFF | 6.17 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.41 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.17 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0060C5
Deuteranopia (green-blind)
#0261BE
Tritanopia (blue-blind)
#725D7B
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #7f40c1; /* rgb */ color: rgb(127, 64, 193); /* oklch */ color: oklch(51.6% 0.193 302.5);
Tailwind
colors: {
custom: {
50: '#a979d5',
500: '#7f40c1',
950: '#000000',
},
}SCSS
$custom: #7f40c1; $custom-light: #a979d5; $custom-dark: #000000;
JSON
{
"hex": "#7f40c1",
"rgb": {
"r": 127,
"g": 64,
"b": 193
},
"hsl": {
"h": 269.302,
"s": 50.988,
"l": 50.392
},
"oklch": {
"l": 0.51625,
"c": 0.19315,
"h": 302.5
},
"luminance": 0.12029
}Semantic roles & 50–950 ramp
primary
#7F40C1
secondary
#AFCB92
accent
#DA4D96
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83