#7F31C4#7F31C4
#7F31C4 is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 50.1% C 0.214 H 303.5°. Best body text is #FFFFFF at 6.69:1 contrast (WCAG AA passes).
Color values
| HEX | #7F31C4 |
|---|---|
| RGB | rgb(127, 49, 196) |
| HSL | hsl(272, 60%, 48%) |
| HSV | hsv(272, 75%, 77%) |
| CMYK | cmyk(35.2%, 75%, 0%, 23.1%) |
| CIE-LAB | lab(39.06, 59.13, -62.63) |
| CIE-LCH | lch(39.06, 86.13, 313.36°) |
| OKLab | oklab(50.13% 0.1182 -0.1785) |
| OKLCH | oklch(50.13% 0.214 303.5) |
| XYZ | xyz(19.8122, 10.6942, 53.2343) |
| Luminance | 0.1069 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Blueviolet
#8A2BE2
ΔE00 4.18
Darkviolet
#9400D3
ΔE00 4.31
Darkorchid
#9932CC
ΔE00 4.80
Burple
#6832E3
ΔE00 5.60
Bluey Purple
#6241C7
ΔE00 5.78
Bluish Purple
#703BE7
ΔE00 5.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F31C4 #76C431
analogous
#3631C4 #7F31C4 #C431BF
triadic
#7F31C4 #C47F31 #31C47F
tetradic
#7F31C4 #C43631 #76C431 #31BFC4
square
#7F31C4 #C43631 #76C431 #31BFC4
split-complementary
#7F31C4 #BFC431 #31C436
monochromatic
#401962 #5F2593 #7F31C4 #9D5CD6 #BA8DE2
Accessibility & contrast
On white
6.69
#7F31C4 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.14
#7F31C4 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F31C4
6.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F31C4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F31C4 | 1.00 | 6.69 | 3.14 | 6.69 |
| #FFFFFF | 6.69 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.14 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.69 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005AC8
Deuteranopia (green-blind)
#005CC1
Tritanopia (blue-blind)
#715679
Achromatopsia (no color)
#5C5C5C
Design tokens & code
CSS
--color: #7f31c4; /* rgb */ color: rgb(127, 49, 196); /* oklch */ color: oklch(50.1% 0.214 303.5);
Tailwind
colors: {
custom: {
50: '#aa71d7',
500: '#7f31c4',
950: '#000000',
},
}SCSS
$custom: #7f31c4; $custom-light: #aa71d7; $custom-dark: #000000;
JSON
{
"hex": "#7f31c4",
"rgb": {
"r": 127,
"g": 49,
"b": 196
},
"hsl": {
"h": 271.837,
"s": 60,
"l": 48.039
},
"oklch": {
"l": 0.5013,
"c": 0.21407,
"h": 303.5
},
"luminance": 0.10694
}Semantic roles & 50–950 ramp
primary
#7F31C4
secondary
#A6CD84
accent
#E3458F
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83