#7D40C1#7D40C1
#7D40C1 is a mid, vivid violet. Relative luminance 0.119; OKLCH L 51.4% C 0.193 H 301.6°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).
Color values
| HEX | #7D40C1 |
|---|---|
| RGB | rgb(125, 64, 193) |
| HSL | hsl(268, 51%, 50%) |
| HSV | hsv(268, 67%, 76%) |
| CMYK | cmyk(35.2%, 66.8%, 0%, 24.3%) |
| CIE-LAB | lab(41.02, 51.19, -57.70) |
| CIE-LCH | lch(41.02, 77.14, 311.58°) |
| OKLab | oklab(51.4% 0.1011 -0.1642) |
| OKLCH | oklch(51.4% 0.193 301.6) |
| XYZ | xyz(19.9142, 11.8769, 51.6851) |
| Luminance | 0.1188 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 4.98
Darkorchid
#9932CC
ΔE00 5.04
Blueviolet
#8A2BE2
ΔE00 5.11
Bluish Purple
#703BE7
ΔE00 5.75
Royal Purple
#7851A9
ΔE00 5.92
Burple
#6832E3
ΔE00 6.28
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7D40C1 #84C140
analogous
#4043C1 #7D40C1 #BD40C1
triadic
#7D40C1 #C17D40 #40C17D
tetradic
#7D40C1 #C14043 #84C140 #40C1BD
square
#7D40C1 #C14043 #84C140 #40C1BD
split-complementary
#7D40C1 #C1BD40 #43C140
monochromatic
#412166 #5F3094 #7D40C1 #9C6ED0 #BC9CDF
Accessibility & contrast
On white
6.22
#7D40C1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.38
#7D40C1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7D40C1
6.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7D40C1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7D40C1 | 1.00 | 6.22 | 3.38 | 6.22 |
| #FFFFFF | 6.22 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.38 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.22 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0060C5
Deuteranopia (green-blind)
#0060BE
Tritanopia (blue-blind)
#6F5D7B
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #7d40c1; /* rgb */ color: rgb(125, 64, 193); /* oklch */ color: oklch(51.4% 0.193 301.6);
Tailwind
colors: {
custom: {
50: '#a879d5',
500: '#7d40c1',
950: '#000000',
},
}SCSS
$custom: #7d40c1; $custom-light: #a879d5; $custom-dark: #000000;
JSON
{
"hex": "#7d40c1",
"rgb": {
"r": 125,
"g": 64,
"b": 193
},
"hsl": {
"h": 268.372,
"s": 50.988,
"l": 50.392
},
"oklch": {
"l": 0.51397,
"c": 0.19277,
"h": 301.6
},
"luminance": 0.11877
}Semantic roles & 50–950 ramp
primary
#7D40C1
secondary
#B0CB92
accent
#DA4D98
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83