#7D31B4#7D31B4
#7D31B4 is a mid, vivid violet. Relative luminance 0.099; OKLCH L 48.6% C 0.198 H 306.9°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).
Color values
| HEX | #7D31B4 |
|---|---|
| RGB | rgb(125, 49, 180) |
| HSL | hsl(275, 57%, 45%) |
| HSV | hsv(275, 73%, 71%) |
| CMYK | cmyk(30.6%, 72.8%, 0%, 29.4%) |
| CIE-LAB | lab(37.58, 55.09, -55.64) |
| CIE-LCH | lch(37.58, 78.30, 314.72°) |
| OKLab | oklab(48.64% 0.1186 -0.158) |
| OKLCH | oklch(48.64% 0.198 306.9) |
| XYZ | xyz(17.7922, 9.8521, 44.1355) |
| Luminance | 0.0985 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 4.98
Rebeccapurple
#663399
ΔE00 5.33
Darkviolet
#9400D3
ΔE00 5.49
Darkorchid
#9932CC
ΔE00 5.82
Blueviolet
#8A2BE2
ΔE00 6.44
Purply
#983FB2
ΔE00 6.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7D31B4 #68B431
analogous
#3B31B4 #7D31B4 #B431AA
triadic
#7D31B4 #B47D31 #31B47D
tetradic
#7D31B4 #B43B31 #68B431 #31AAB4
square
#7D31B4 #B43B31 #68B431 #31AAB4
split-complementary
#7D31B4 #AAB431 #31B43B
monochromatic
#3A1754 #5C2484 #7D31B4 #9B52D0 #B782DD
Accessibility & contrast
On white
7.07
#7D31B4 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.97
#7D31B4 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7D31B4
7.07:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7D31B4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7D31B4 | 1.00 | 7.07 | 2.97 | 7.07 |
| #FFFFFF | 7.07 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.97 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.07 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0056B8
Deuteranopia (green-blind)
#0059B1
Tritanopia (blue-blind)
#745070
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #7d31b4; /* rgb */ color: rgb(125, 49, 180); /* oklch */ color: oklch(48.6% 0.198 306.9);
Tailwind
colors: {
custom: {
50: '#a770cb',
500: '#7d31b4',
950: '#000000',
},
}SCSS
$custom: #7d31b4; $custom-light: #a770cb; $custom-dark: #000000;
JSON
{
"hex": "#7d31b4",
"rgb": {
"r": 125,
"g": 49,
"b": 180
},
"hsl": {
"h": 274.809,
"s": 57.205,
"l": 44.902
},
"oklch": {
"l": 0.48643,
"c": 0.19756,
"h": 306.9
},
"luminance": 0.09852
}Semantic roles & 50–950 ramp
primary
#7D31B4
secondary
#9AC67B
accent
#E04788
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100813
muted
#7F7B82