#7D40BE#7D40BE
#7D40BE is a mid, vivid violet. Relative luminance 0.117; OKLCH L 51.2% C 0.189 H 302.4°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).
Color values
| HEX | #7D40BE |
|---|---|
| RGB | rgb(125, 64, 190) |
| HSL | hsl(269, 50%, 50%) |
| HSV | hsv(269, 66%, 75%) |
| CMYK | cmyk(34.2%, 66.3%, 0%, 25.5%) |
| CIE-LAB | lab(40.81, 50.46, -56.30) |
| CIE-LCH | lch(40.81, 75.60, 311.87°) |
| OKLab | oklab(51.18% 0.1014 -0.16) |
| OKLCH | oklch(51.18% 0.189 302.4) |
| XYZ | xyz(19.5829, 11.7444, 49.9404) |
| Luminance | 0.1174 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 5.11
Bluey Purple
#6241C7
ΔE00 5.18
Blueviolet
#8A2BE2
ΔE00 5.46
Royal Purple
#7851A9
ΔE00 5.65
Bluish Purple
#703BE7
ΔE00 6.19
Purply
#983FB2
ΔE00 6.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7D40BE #81BE40
analogous
#4042BE #7D40BE #BC40BE
triadic
#7D40BE #BE7D40 #40BE7D
tetradic
#7D40BE #BE4042 #81BE40 #40BEBC
square
#7D40BE #BE4042 #81BE40 #40BEBC
split-complementary
#7D40BE #BEBC40 #42BE40
monochromatic
#412162 #5F3190 #7D40BE #9C6DCE #BB9BDD
Accessibility & contrast
On white
6.27
#7D40BE on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.35
#7D40BE on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7D40BE
6.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7D40BE | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7D40BE | 1.00 | 6.27 | 3.35 | 6.27 |
| #FFFFFF | 6.27 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.35 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.27 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005FC2
Deuteranopia (green-blind)
#0760BB
Tritanopia (blue-blind)
#705C79
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #7d40be; /* rgb */ color: rgb(125, 64, 190); /* oklch */ color: oklch(51.2% 0.189 302.4);
Tailwind
colors: {
custom: {
50: '#a779d2',
500: '#7d40be',
950: '#000000',
},
}SCSS
$custom: #7d40be; $custom-light: #a779d2; $custom-dark: #000000;
JSON
{
"hex": "#7d40be",
"rgb": {
"r": 125,
"g": 64,
"b": 190
},
"hsl": {
"h": 269.048,
"s": 49.606,
"l": 49.804
},
"oklch": {
"l": 0.51177,
"c": 0.18943,
"h": 302.4
},
"luminance": 0.11744
}Semantic roles & 50–950 ramp
primary
#7D40BE
secondary
#AEC990
accent
#D94F96
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83