#7D40C4#7D40C4
#7D40C4 is a mid, vivid violet. Relative luminance 0.120; OKLCH L 51.6% C 0.196 H 300.9°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).
Color values
| HEX | #7D40C4 |
|---|---|
| RGB | rgb(125, 64, 196) |
| HSL | hsl(268, 53%, 51%) |
| HSV | hsv(268, 67%, 77%) |
| CMYK | cmyk(36.2%, 67.3%, 0%, 23.1%) |
| CIE-LAB | lab(41.24, 51.94, -59.10) |
| CIE-LCH | lch(41.24, 78.68, 311.31°) |
| OKLab | oklab(51.62% 0.1007 -0.1683) |
| OKLCH | oklch(51.62% 0.196 300.9) |
| XYZ | xyz(20.2522, 12.0122, 53.4655) |
| Luminance | 0.1201 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Blueviolet
#8A2BE2
ΔE00 4.78
Bluey Purple
#6241C7
ΔE00 4.82
Darkorchid
#9932CC
ΔE00 5.01
Bluish Purple
#703BE7
ΔE00 5.32
Burple
#6832E3
ΔE00 5.94
Royal Purple
#7851A9
ΔE00 6.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7D40C4 #87C440
analogous
#4045C4 #7D40C4 #BF40C4
triadic
#7D40C4 #C47D40 #40C47D
tetradic
#7D40C4 #C44045 #87C440 #40C4BF
square
#7D40C4 #C44045 #87C440 #40C4BF
split-complementary
#7D40C4 #C4BF40 #45C440
monochromatic
#422069 #5F2F98 #7D40C4 #9D6FD2 #BD9EE1
Accessibility & contrast
On white
6.17
#7D40C4 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.40
#7D40C4 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7D40C4
6.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7D40C4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7D40C4 | 1.00 | 6.17 | 3.40 | 6.17 |
| #FFFFFF | 6.17 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.40 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.17 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0061C8
Deuteranopia (green-blind)
#0060C1
Tritanopia (blue-blind)
#6E5E7D
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #7d40c4; /* rgb */ color: rgb(125, 64, 196); /* oklch */ color: oklch(51.6% 0.196 300.9);
Tailwind
colors: {
custom: {
50: '#a879d7',
500: '#7d40c4',
950: '#000000',
},
}SCSS
$custom: #7d40c4; $custom-light: #a879d7; $custom-dark: #000000;
JSON
{
"hex": "#7d40c4",
"rgb": {
"r": 125,
"g": 64,
"b": 196
},
"hsl": {
"h": 267.727,
"s": 52.8,
"l": 50.98
},
"oklch": {
"l": 0.5162,
"c": 0.19609,
"h": 300.9
},
"luminance": 0.12012
}Semantic roles & 50–950 ramp
primary
#7D40C4
secondary
#B2CD93
accent
#DC4C99
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83