#7B31C9#7B31C9
#7B31C9 is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 50.1% C 0.218 H 300.7°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).
Color values
| HEX | #7B31C9 |
|---|---|
| RGB | rgb(123, 49, 201) |
| HSL | hsl(269, 61%, 49%) |
| HSV | hsv(269, 76%, 79%) |
| CMYK | cmyk(38.8%, 75.6%, 0%, 21.2%) |
| CIE-LAB | lab(38.94, 59.62, -65.76) |
| CIE-LCH | lch(38.94, 88.76, 312.20°) |
| OKLab | oklab(50.06% 0.1114 -0.1878) |
| OKLCH | oklch(50.06% 0.218 300.7) |
| XYZ | xyz(19.8067, 10.6245, 56.2542) |
| Luminance | 0.1062 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Blueviolet
#8A2BE2
ΔE00 3.86
Burple
#6832E3
ΔE00 4.55
Darkviolet
#9400D3
ΔE00 4.64
Bluish Purple
#703BE7
ΔE00 4.99
Bluey Purple
#6241C7
ΔE00 5.04
Darkorchid
#9932CC
ΔE00 5.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7B31C9 #7FC931
analogous
#3133C9 #7B31C9 #C731C9
triadic
#7B31C9 #C97B31 #31C97B
tetradic
#7B31C9 #C93133 #7FC931 #31C9C7
square
#7B31C9 #C93133 #7FC931 #31C9C7
split-complementary
#7B31C9 #C9C731 #33C931
monochromatic
#3F1967 #5D2598 #7B31C9 #9A5FD8 #B990E4
Accessibility & contrast
On white
6.72
#7B31C9 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.13
#7B31C9 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7B31C9
6.72:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7B31C9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7B31C9 | 1.00 | 6.72 | 3.13 | 6.72 |
| #FFFFFF | 6.72 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.13 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.72 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005BCD
Deuteranopia (green-blind)
#005BC6
Tritanopia (blue-blind)
#69597B
Achromatopsia (no color)
#5C5C5C
Design tokens & code
CSS
--color: #7b31c9; /* rgb */ color: rgb(123, 49, 201); /* oklch */ color: oklch(50.1% 0.218 300.7);
Tailwind
colors: {
custom: {
50: '#a871da',
500: '#7b31c9',
950: '#000000',
},
}SCSS
$custom: #7b31c9; $custom-light: #a871da; $custom-dark: #000000;
JSON
{
"hex": "#7b31c9",
"rgb": {
"r": 123,
"g": 49,
"b": 201
},
"hsl": {
"h": 269.211,
"s": 60.8,
"l": 49.02
},
"oklch": {
"l": 0.50057,
"c": 0.21836,
"h": 300.7
},
"luminance": 0.10625
}Semantic roles & 50–950 ramp
primary
#7B31C9
secondary
#ACCF87
accent
#E44496
background
#FAF7FD
surface
#F5EDFB
border
#CFC8D4
text
#100815
muted
#7F7B83