#7A31AF#7A31AF
#7A31AF is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.9% C 0.192 H 307.0°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).
Color values
| HEX | #7A31AF |
|---|---|
| RGB | rgb(122, 49, 175) |
| HSL | hsl(275, 56%, 44%) |
| HSV | hsv(275, 72%, 69%) |
| CMYK | cmyk(30.3%, 72%, 0%, 31.4%) |
| CIE-LAB | lab(36.80, 53.36, -53.95) |
| CIE-LCH | lch(36.80, 75.89, 314.68°) |
| OKLab | oklab(47.89% 0.1153 -0.1532) |
| OKLCH | oklch(47.89% 0.192 307) |
| XYZ | xyz(16.8606, 9.4295, 41.4810) |
| Luminance | 0.0943 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 4.47
Rebeccapurple
#663399
ΔE00 4.52
Darkviolet
#9400D3
ΔE00 6.20
Darkorchid
#9932CC
ΔE00 6.60
Bluey Purple
#6241C7
ΔE00 6.96
Purply
#983FB2
ΔE00 7.05
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7A31AF #66AF31
analogous
#3B31AF #7A31AF #AF31A5
triadic
#7A31AF #AF7A31 #31AF7A
tetradic
#7A31AF #AF3B31 #66AF31 #31A5AF
square
#7A31AF #AF3B31 #66AF31 #31A5AF
split-complementary
#7A31AF #A5AF31 #31AF3B
monochromatic
#37164F #59247F #7A31AF #994FCE #B57FDB
Accessibility & contrast
On white
7.28
#7A31AF on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.89
#7A31AF on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7A31AF
7.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7A31AF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7A31AF | 1.00 | 7.28 | 2.89 | 7.28 |
| #FFFFFF | 7.28 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.89 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.28 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0054B3
Deuteranopia (green-blind)
#0157AC
Tritanopia (blue-blind)
#714E6D
Achromatopsia (no color)
#575757
Design tokens & code
CSS
--color: #7a31af; /* rgb */ color: rgb(122, 49, 175); /* oklch */ color: oklch(47.9% 0.192 307.0);
Tailwind
colors: {
custom: {
50: '#a570c8',
500: '#7a31af',
950: '#000000',
},
}SCSS
$custom: #7a31af; $custom-light: #a570c8; $custom-dark: #000000;
JSON
{
"hex": "#7a31af",
"rgb": {
"r": 122,
"g": 49,
"b": 175
},
"hsl": {
"h": 274.762,
"s": 56.25,
"l": 43.922
},
"oklch": {
"l": 0.47889,
"c": 0.1917,
"h": 307
},
"luminance": 0.09429
}Semantic roles & 50–950 ramp
primary
#7A31AF
secondary
#98C478
accent
#E04888
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82