#7F46C4#7F46C4
#7F46C4 is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.6% C 0.189 H 300.9°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).
Color values
| HEX | #7F46C4 |
|---|---|
| RGB | rgb(127, 70, 196) |
| HSL | hsl(267, 52%, 52%) |
| HSV | hsv(267, 64%, 77%) |
| CMYK | cmyk(35.2%, 64.3%, 0%, 23.1%) |
| CIE-LAB | lab(42.58, 49.32, -56.92) |
| CIE-LCH | lch(42.58, 75.31, 310.91°) |
| OKLab | oklab(52.64% 0.0968 -0.1618) |
| OKLCH | oklch(52.64% 0.189 300.9) |
| XYZ | xyz(20.9040, 12.8777, 53.5982) |
| Luminance | 0.1288 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 5.20
Royal Purple
#7851A9
ΔE00 5.38
Bluey Purple
#6241C7
ΔE00 5.42
Blueviolet
#8A2BE2
ΔE00 5.47
Bluish Purple
#703BE7
ΔE00 5.82
Purply
#983FB2
ΔE00 6.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F46C4 #8BC446
analogous
#464CC4 #7F46C4 #BE46C4
triadic
#7F46C4 #C47F46 #46C47F
tetradic
#7F46C4 #C4464C #8BC446 #46C4BE
square
#7F46C4 #C4464C #8BC446 #46C4BE
split-complementary
#7F46C4 #C4BE46 #4CC446
monochromatic
#44236D #61329B #7F46C4 #9F74D3 #BFA3E2
Accessibility & contrast
On white
5.87
#7F46C4 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.58
#7F46C4 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F46C4
5.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F46C4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F46C4 | 1.00 | 5.87 | 3.58 | 5.87 |
| #FFFFFF | 5.87 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.87 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0064C8
Deuteranopia (green-blind)
#0F64C1
Tritanopia (blue-blind)
#70627F
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #7f46c4; /* rgb */ color: rgb(127, 70, 196); /* oklch */ color: oklch(52.6% 0.189 300.9);
Tailwind
colors: {
custom: {
50: '#a97dd7',
500: '#7f46c4',
950: '#000000',
},
}SCSS
$custom: #7f46c4; $custom-light: #a97dd7; $custom-dark: #000000;
JSON
{
"hex": "#7f46c4",
"rgb": {
"r": 127,
"g": 70,
"b": 196
},
"hsl": {
"h": 267.143,
"s": 51.639,
"l": 52.157
},
"oklch": {
"l": 0.52639,
"c": 0.18854,
"h": 300.9
},
"luminance": 0.12878
}Semantic roles & 50–950 ramp
primary
#7F46C4
secondary
#B6CE97
accent
#DB4D9B
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83