#7F31C6#7F31C6
#7F31C6 is a mid, highly saturated violet. Relative luminance 0.108; OKLCH L 50.3% C 0.216 H 303.0°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).
Color values
| HEX | #7F31C6 |
|---|---|
| RGB | rgb(127, 49, 198) |
| HSL | hsl(271, 60%, 48%) |
| HSV | hsv(271, 75%, 78%) |
| CMYK | cmyk(35.9%, 75.3%, 0%, 22.4%) |
| CIE-LAB | lab(39.22, 59.59, -63.54) |
| CIE-LCH | lch(39.22, 87.11, 313.17°) |
| OKLab | oklab(50.29% 0.1177 -0.1811) |
| OKLCH | oklch(50.29% 0.216 303) |
| XYZ | xyz(20.0413, 10.7859, 54.4412) |
| Luminance | 0.1079 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Blueviolet
#8A2BE2
ΔE00 3.92
Darkviolet
#9400D3
ΔE00 4.26
Darkorchid
#9932CC
ΔE00 4.78
Burple
#6832E3
ΔE00 5.36
Bluish Purple
#703BE7
ΔE00 5.63
Bluey Purple
#6241C7
ΔE00 5.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F31C6 #78C631
analogous
#3431C6 #7F31C6 #C631C2
triadic
#7F31C6 #C67F31 #31C67F
tetradic
#7F31C6 #C63431 #78C631 #31C2C6
square
#7F31C6 #C63431 #78C631 #31C2C6
split-complementary
#7F31C6 #C2C631 #31C634
monochromatic
#401964 #602595 #7F31C6 #9D5DD7 #BB8EE3
Accessibility & contrast
On white
6.65
#7F31C6 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.16
#7F31C6 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F31C6
6.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F31C6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F31C6 | 1.00 | 6.65 | 3.16 | 6.65 |
| #FFFFFF | 6.65 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.16 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.65 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005BCA
Deuteranopia (green-blind)
#005CC3
Tritanopia (blue-blind)
#70577A
Achromatopsia (no color)
#5C5C5C
Design tokens & code
CSS
--color: #7f31c6; /* rgb */ color: rgb(127, 49, 198); /* oklch */ color: oklch(50.3% 0.216 303.0);
Tailwind
colors: {
custom: {
50: '#aa71d8',
500: '#7f31c6',
950: '#000000',
},
}SCSS
$custom: #7f31c6; $custom-light: #aa71d8; $custom-dark: #000000;
JSON
{
"hex": "#7f31c6",
"rgb": {
"r": 127,
"g": 49,
"b": 198
},
"hsl": {
"h": 271.409,
"s": 60.324,
"l": 48.431
},
"oklch": {
"l": 0.50289,
"c": 0.21605,
"h": 303
},
"luminance": 0.10786
}Semantic roles & 50–950 ramp
primary
#7F31C6
secondary
#A8CE85
accent
#E34490
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83