#7F31C1#7F31C1
#7F31C1 is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 49.9% C 0.211 H 304.3°. Best body text is #FFFFFF at 6.75:1 contrast (WCAG AA passes).
Color values
| HEX | #7F31C1 |
|---|---|
| RGB | rgb(127, 49, 193) |
| HSL | hsl(273, 60%, 47%) |
| HSV | hsv(273, 75%, 76%) |
| CMYK | cmyk(34.2%, 74.6%, 0%, 24.3%) |
| CIE-LAB | lab(38.83, 58.44, -61.25) |
| CIE-LCH | lch(38.83, 84.66, 313.65°) |
| OKLab | oklab(49.89% 0.1188 -0.1744) |
| OKLCH | oklch(49.89% 0.211 304.3) |
| XYZ | xyz(19.4741, 10.5590, 51.4539) |
| Luminance | 0.1056 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkviolet
#9400D3
ΔE00 4.43
Blueviolet
#8A2BE2
ΔE00 4.57
Darkorchid
#9932CC
ΔE00 4.87
Bluey Purple
#6241C7
ΔE00 5.95
Burple
#6832E3
ΔE00 5.98
Violet (survey)
#9A0EEA
ΔE00 6.28
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F31C1 #73C131
analogous
#3731C1 #7F31C1 #C131BB
triadic
#7F31C1 #C17F31 #31C17F
tetradic
#7F31C1 #C13731 #73C131 #31BBC1
square
#7F31C1 #C13731 #73C131 #31BBC1
split-complementary
#7F31C1 #BBC131 #31C137
monochromatic
#3F185F #5F2590 #7F31C1 #9D5AD5 #BA8BE2
Accessibility & contrast
On white
6.75
#7F31C1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.11
#7F31C1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F31C1
6.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F31C1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F31C1 | 1.00 | 6.75 | 3.11 | 6.75 |
| #FFFFFF | 6.75 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.11 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.75 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005AC5
Deuteranopia (green-blind)
#005BBE
Tritanopia (blue-blind)
#725577
Achromatopsia (no color)
#5B5B5B
Design tokens & code
CSS
--color: #7f31c1; /* rgb */ color: rgb(127, 49, 193); /* oklch */ color: oklch(49.9% 0.211 304.3);
Tailwind
colors: {
custom: {
50: '#aa71d5',
500: '#7f31c1',
950: '#000000',
},
}SCSS
$custom: #7f31c1; $custom-light: #aa71d5; $custom-dark: #000000;
JSON
{
"hex": "#7f31c1",
"rgb": {
"r": 127,
"g": 49,
"b": 193
},
"hsl": {
"h": 272.5,
"s": 59.504,
"l": 47.451
},
"oklch": {
"l": 0.49893,
"c": 0.21107,
"h": 304.3
},
"luminance": 0.10559
}Semantic roles & 50–950 ramp
primary
#7F31C1
secondary
#A4CC82
accent
#E3458D
background
#FAF7FD
surface
#F5EDFA
border
#CFC8D3
text
#110814
muted
#807B83