#7F40C0#7F40C0
#7F40C0 is a mid, vivid violet. Relative luminance 0.120; OKLCH L 51.6% C 0.192 H 302.7°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).
Color values
| HEX | #7F40C0 |
|---|---|
| RGB | rgb(127, 64, 192) |
| HSL | hsl(270, 50%, 50%) |
| HSV | hsv(270, 67%, 75%) |
| CMYK | cmyk(33.9%, 66.7%, 0%, 24.7%) |
| CIE-LAB | lab(41.19, 51.36, -56.83) |
| CIE-LCH | lch(41.19, 76.60, 312.11°) |
| OKLab | oklab(51.55% 0.1039 -0.1615) |
| OKLCH | oklch(51.55% 0.192 302.7) |
| XYZ | xyz(20.0980, 11.9846, 51.1134) |
| Luminance | 0.1198 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 4.73
Blueviolet
#8A2BE2
ΔE00 5.17
Bluey Purple
#6241C7
ΔE00 5.41
Royal Purple
#7851A9
ΔE00 5.81
Purply
#983FB2
ΔE00 6.05
Bluish Purple
#703BE7
ΔE00 6.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F40C0 #81C040
analogous
#4041C0 #7F40C0 #BF40C0
triadic
#7F40C0 #C07F40 #40C07F
tetradic
#7F40C0 #C04041 #81C040 #40C0BF
square
#7F40C0 #C04041 #81C040 #40C0BF
split-complementary
#7F40C0 #C0BF40 #41C040
monochromatic
#422164 #613092 #7F40C0 #9E6ECF #BD9CDE
Accessibility & contrast
On white
6.18
#7F40C0 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.40
#7F40C0 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F40C0
6.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F40C0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F40C0 | 1.00 | 6.18 | 3.40 | 6.18 |
| #FFFFFF | 6.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.40 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0060C4
Deuteranopia (green-blind)
#0661BD
Tritanopia (blue-blind)
#725D7B
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #7f40c0; /* rgb */ color: rgb(127, 64, 192); /* oklch */ color: oklch(51.6% 0.192 302.7);
Tailwind
colors: {
custom: {
50: '#a979d4',
500: '#7f40c0',
950: '#000000',
},
}SCSS
$custom: #7f40c0; $custom-light: #a979d4; $custom-dark: #000000;
JSON
{
"hex": "#7f40c0",
"rgb": {
"r": 127,
"g": 64,
"b": 192
},
"hsl": {
"h": 269.531,
"s": 50.394,
"l": 50.196
},
"oklch": {
"l": 0.51552,
"c": 0.19205,
"h": 302.7
},
"luminance": 0.11985
}Semantic roles & 50–950 ramp
primary
#7F40C0
secondary
#AECB91
accent
#DA4E95
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83