#7A31C4#7A31C4
#7A31C4 is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.5% C 0.213 H 301.4°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).
Color values
| HEX | #7A31C4 |
|---|---|
| RGB | rgb(122, 49, 196) |
| HSL | hsl(270, 60%, 48%) |
| HSV | hsv(270, 75%, 77%) |
| CMYK | cmyk(37.8%, 75%, 0%, 23.1%) |
| CIE-LAB | lab(38.41, 58.27, -63.71) |
| CIE-LCH | lch(38.41, 86.34, 312.44°) |
| OKLab | oklab(49.53% 0.1112 -0.1819) |
| OKLCH | oklch(49.53% 0.213 301.4) |
| XYZ | xyz(19.0857, 10.3196, 53.2002) |
| Luminance | 0.1032 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Blueviolet
#8A2BE2
ΔE00 4.51
Darkviolet
#9400D3
ΔE00 4.84
Burple
#6832E3
ΔE00 5.05
Bluey Purple
#6241C7
ΔE00 5.12
Purple Blue
#5D21D0
ΔE00 5.60
Bluish Purple
#703BE7
ΔE00 5.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7A31C4 #7BC431
analogous
#3131C4 #7A31C4 #C331C4
triadic
#7A31C4 #C47A31 #31C47A
tetradic
#7A31C4 #C43131 #7BC431 #31C4C3
square
#7A31C4 #C43131 #7BC431 #31C4C3
split-complementary
#7A31C4 #C4C331 #31C431
monochromatic
#3D1962 #5C2593 #7A31C4 #995CD6 #B78DE2
Accessibility & contrast
On white
6.85
#7A31C4 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.06
#7A31C4 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7A31C4
6.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7A31C4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7A31C4 | 1.00 | 6.85 | 3.06 | 6.85 |
| #FFFFFF | 6.85 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.06 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.85 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005AC8
Deuteranopia (green-blind)
#005AC1
Tritanopia (blue-blind)
#6A5779
Achromatopsia (no color)
#5A5A5A
Design tokens & code
CSS
--color: #7a31c4; /* rgb */ color: rgb(122, 49, 196); /* oklch */ color: oklch(49.5% 0.213 301.4);
Tailwind
colors: {
custom: {
50: '#a771d7',
500: '#7a31c4',
950: '#000000',
},
}SCSS
$custom: #7a31c4; $custom-light: #a771d7; $custom-dark: #000000;
JSON
{
"hex": "#7a31c4",
"rgb": {
"r": 122,
"g": 49,
"b": 196
},
"hsl": {
"h": 269.796,
"s": 60,
"l": 48.039
},
"oklch": {
"l": 0.49532,
"c": 0.21313,
"h": 301.4
},
"luminance": 0.1032
}Semantic roles & 50–950 ramp
primary
#7A31C4
secondary
#A9CD84
accent
#E34594
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100814
muted
#7F7B83