#7F31B2#7F31B2
#7F31B2 is a mid, vivid violet. Relative luminance 0.099; OKLCH L 48.7% C 0.196 H 308.3°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).
Color values
| HEX | #7F31B2 |
|---|---|
| RGB | rgb(127, 49, 178) |
| HSL | hsl(276, 57%, 45%) |
| HSV | hsv(276, 72%, 70%) |
| CMYK | cmyk(28.7%, 72.5%, 0%, 30.2%) |
| CIE-LAB | lab(37.70, 55.03, -54.24) |
| CIE-LCH | lch(37.70, 77.27, 315.42°) |
| OKLab | oklab(48.75% 0.1216 -0.1538) |
| OKLCH | oklch(48.75% 0.196 308.3) |
| XYZ | xyz(17.8849, 9.9233, 43.0841) |
| Luminance | 0.0992 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 4.68
Rebeccapurple
#663399
ΔE00 5.41
Darkviolet
#9400D3
ΔE00 5.55
Darkorchid
#9932CC
ΔE00 5.69
Purply
#983FB2
ΔE00 6.24
Blueviolet
#8A2BE2
ΔE00 6.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F31B2 #64B231
analogous
#3F31B2 #7F31B2 #B231A5
triadic
#7F31B2 #B27F31 #31B27F
tetradic
#7F31B2 #B23F31 #64B231 #31A5B2
square
#7F31B2 #B23F31 #64B231 #31A5B2
split-complementary
#7F31B2 #A5B231 #31B23F
monochromatic
#3B1752 #5D2482 #7F31B2 #9D51CF #B881DC
Accessibility & contrast
On white
7.04
#7F31B2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.98
#7F31B2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7F31B2
7.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F31B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F31B2 | 1.00 | 7.04 | 2.98 | 7.04 |
| #FFFFFF | 7.04 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.98 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.04 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0056B6
Deuteranopia (green-blind)
#0A5AAF
Tritanopia (blue-blind)
#774F6F
Achromatopsia (no color)
#595959
Design tokens & code
CSS
--color: #7f31b2; /* rgb */ color: rgb(127, 49, 178); /* oklch */ color: oklch(48.7% 0.196 308.3);
Tailwind
colors: {
custom: {
50: '#a970ca',
500: '#7f31b2',
950: '#000000',
},
}SCSS
$custom: #7f31b2; $custom-light: #a970ca; $custom-dark: #000000;
JSON
{
"hex": "#7f31b2",
"rgb": {
"r": 127,
"g": 49,
"b": 178
},
"hsl": {
"h": 276.279,
"s": 56.828,
"l": 44.51
},
"oklch": {
"l": 0.48746,
"c": 0.19609,
"h": 308.3
},
"luminance": 0.09923
}Semantic roles & 50–950 ramp
primary
#7F31B2
secondary
#97C579
accent
#E04884
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82