#7D40C3#7D40C3
#7D40C3 is a mid, vivid violet. Relative luminance 0.120; OKLCH L 51.5% C 0.195 H 301.1°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).
Color values
| HEX | #7D40C3 |
|---|---|
| RGB | rgb(125, 64, 195) |
| HSL | hsl(268, 52%, 51%) |
| HSV | hsv(268, 67%, 76%) |
| CMYK | cmyk(35.9%, 67.2%, 0%, 23.5%) |
| CIE-LAB | lab(41.16, 51.69, -58.64) |
| CIE-LCH | lch(41.16, 78.17, 311.40°) |
| OKLab | oklab(51.54% 0.1008 -0.1669) |
| OKLCH | oklch(51.54% 0.195 301.1) |
| XYZ | xyz(20.1388, 11.9668, 52.8680) |
| Luminance | 0.1197 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 4.87
Blueviolet
#8A2BE2
ΔE00 4.88
Darkorchid
#9932CC
ΔE00 5.01
Bluish Purple
#703BE7
ΔE00 5.46
Burple
#6832E3
ΔE00 6.05
Royal Purple
#7851A9
ΔE00 6.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7D40C3 #86C340
analogous
#4044C3 #7D40C3 #BE40C3
triadic
#7D40C3 #C37D40 #40C37D
tetradic
#7D40C3 #C34044 #86C340 #40C3BE
square
#7D40C3 #C34044 #86C340 #40C3BE
split-complementary
#7D40C3 #C3BE40 #44C340
monochromatic
#422168 #5F2F97 #7D40C3 #9D6FD2 #BC9DE0
Accessibility & contrast
On white
6.19
#7D40C3 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.39
#7D40C3 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7D40C3
6.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7D40C3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7D40C3 | 1.00 | 6.19 | 3.39 | 6.19 |
| #FFFFFF | 6.19 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.39 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.19 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0060C7
Deuteranopia (green-blind)
#0060C0
Tritanopia (blue-blind)
#6E5E7C
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #7d40c3; /* rgb */ color: rgb(125, 64, 195); /* oklch */ color: oklch(51.5% 0.195 301.1);
Tailwind
colors: {
custom: {
50: '#a879d6',
500: '#7d40c3',
950: '#000000',
},
}SCSS
$custom: #7d40c3; $custom-light: #a879d6; $custom-dark: #000000;
JSON
{
"hex": "#7d40c3",
"rgb": {
"r": 125,
"g": 64,
"b": 195
},
"hsl": {
"h": 267.939,
"s": 52.191,
"l": 50.784
},
"oklch": {
"l": 0.51545,
"c": 0.19498,
"h": 301.1
},
"luminance": 0.11967
}Semantic roles & 50–950 ramp
primary
#7D40C3
secondary
#B1CC92
accent
#DC4C99
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83