#7D40C5#7D40C5
#7D40C5 is a mid, vivid violet. Relative luminance 0.121; OKLCH L 51.7% C 0.197 H 300.7°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).
Color values
| HEX | #7D40C5 |
|---|---|
| RGB | rgb(125, 64, 197) |
| HSL | hsl(268, 53%, 51%) |
| HSV | hsv(268, 68%, 77%) |
| CMYK | cmyk(36.5%, 67.5%, 0%, 22.7%) |
| CIE-LAB | lab(41.31, 52.18, -59.57) |
| CIE-LCH | lch(41.31, 79.19, 311.22°) |
| OKLab | oklab(51.7% 0.1006 -0.1696) |
| OKLCH | oklch(51.7% 0.197 300.7) |
| XYZ | xyz(20.3664, 12.0578, 54.0669) |
| Luminance | 0.1206 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Blueviolet
#8A2BE2
ΔE00 4.67
Bluey Purple
#6241C7
ΔE00 4.77
Darkorchid
#9932CC
ΔE00 5.01
Bluish Purple
#703BE7
ΔE00 5.18
Burple
#6832E3
ΔE00 5.83
Royal Purple
#7851A9
ΔE00 6.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7D40C5 #88C540
analogous
#4045C5 #7D40C5 #C040C5
triadic
#7D40C5 #C57D40 #40C57D
tetradic
#7D40C5 #C54045 #88C540 #40C5C0
square
#7D40C5 #C54045 #88C540 #40C5C0
split-complementary
#7D40C5 #C5C040 #45C540
monochromatic
#42206A #5F2F99 #7D40C5 #9D6FD3 #BD9EE2
Accessibility & contrast
On white
6.16
#7D40C5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.41
#7D40C5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7D40C5
6.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7D40C5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7D40C5 | 1.00 | 6.16 | 3.41 | 6.16 |
| #FFFFFF | 6.16 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.41 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.16 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0061C9
Deuteranopia (green-blind)
#0061C2
Tritanopia (blue-blind)
#6D5F7D
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #7d40c5; /* rgb */ color: rgb(125, 64, 197); /* oklch */ color: oklch(51.7% 0.197 300.7);
Tailwind
colors: {
custom: {
50: '#a879d7',
500: '#7d40c5',
950: '#000000',
},
}SCSS
$custom: #7d40c5; $custom-light: #a879d7; $custom-dark: #000000;
JSON
{
"hex": "#7d40c5",
"rgb": {
"r": 125,
"g": 64,
"b": 197
},
"hsl": {
"h": 267.519,
"s": 53.414,
"l": 51.176
},
"oklch": {
"l": 0.51695,
"c": 0.1972,
"h": 300.7
},
"luminance": 0.12058
}Semantic roles & 50–950 ramp
primary
#7D40C5
secondary
#B3CE93
accent
#DD4B9A
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83