#7F31C0#7F31C0
#7F31C0 is a mid, highly saturated violet. Relative luminance 0.105; OKLCH L 49.8% C 0.210 H 304.5°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).
Color values
| HEX | #7F31C0 |
|---|---|
| RGB | rgb(127, 49, 192) |
| HSL | hsl(273, 59%, 47%) |
| HSV | hsv(273, 74%, 75%) |
| CMYK | cmyk(33.9%, 74.5%, 0%, 24.7%) |
| CIE-LAB | lab(38.75, 58.21, -60.79) |
| CIE-LCH | lch(38.75, 84.17, 313.76°) |
| OKLab | oklab(49.81% 0.119 -0.1731) |
| OKLCH | oklch(49.81% 0.21 304.5) |
| XYZ | xyz(19.3630, 10.5145, 50.8684) |
| Luminance | 0.1051 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkviolet
#9400D3
ΔE00 4.48
Blueviolet
#8A2BE2
ΔE00 4.70
Darkorchid
#9932CC
ΔE00 4.90
Bluey Purple
#6241C7
ΔE00 6.02
Burple
#6832E3
ΔE00 6.11
Violet (survey)
#9A0EEA
ΔE00 6.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F31C0 #72C031
analogous
#3731C0 #7F31C0 #C031BA
triadic
#7F31C0 #C07F31 #31C07F
tetradic
#7F31C0 #C03731 #72C031 #31BAC0
square
#7F31C0 #C03731 #72C031 #31BAC0
split-complementary
#7F31C0 #BAC031 #31C037
monochromatic
#3E185E #5F258F #7F31C0 #9D59D5 #BA8AE1
Accessibility & contrast
On white
6.77
#7F31C0 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.10
#7F31C0 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F31C0
6.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F31C0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F31C0 | 1.00 | 6.77 | 3.10 | 6.77 |
| #FFFFFF | 6.77 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.10 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.77 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0059C4
Deuteranopia (green-blind)
#005BBD
Tritanopia (blue-blind)
#735576
Achromatopsia (no color)
#5B5B5B
Design tokens & code
CSS
--color: #7f31c0; /* rgb */ color: rgb(127, 49, 192); /* oklch */ color: oklch(49.8% 0.210 304.5);
Tailwind
colors: {
custom: {
50: '#aa71d4',
500: '#7f31c0',
950: '#000000',
},
}SCSS
$custom: #7f31c0; $custom-light: #aa71d4; $custom-dark: #000000;
JSON
{
"hex": "#7f31c0",
"rgb": {
"r": 127,
"g": 49,
"b": 192
},
"hsl": {
"h": 272.727,
"s": 59.336,
"l": 47.255
},
"oklch": {
"l": 0.49814,
"c": 0.21006,
"h": 304.5
},
"luminance": 0.10514
}Semantic roles & 50–950 ramp
primary
#7F31C0
secondary
#A3CB82
accent
#E3458D
background
#FAF7FD
surface
#F5EDFA
border
#CFC8D3
text
#110814
muted
#807B83