#7F3CA6#7F3CA6
#7F3CA6 is a mid, vivid violet. Relative luminance 0.105; OKLCH L 49.2% C 0.169 H 310.8°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).
Color values
| HEX | #7F3CA6 |
|---|---|
| RGB | rgb(127, 60, 166) |
| HSL | hsl(278, 47%, 44%) |
| HSV | hsv(278, 64%, 65%) |
| CMYK | cmyk(23.5%, 63.9%, 0%, 34.9%) |
| CIE-LAB | lab(38.72, 47.22, -45.45) |
| CIE-LCH | lch(38.72, 65.54, 316.09°) |
| OKLab | oklab(49.22% 0.1105 -0.1281) |
| OKLCH | oklch(49.22% 0.169 310.8) |
| XYZ | xyz(17.2499, 10.4973, 37.1865) |
| Luminance | 0.1050 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purply
#983FB2
ΔE00 5.08
Rebeccapurple
#663399
ΔE00 5.40
Purple (survey)
#7E1E9C
ΔE00 5.42
Royal Purple
#7851A9
ΔE00 5.64
Darkorchid
#9932CC
ΔE00 6.64
Warm Purple
#952E8F
ΔE00 7.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F3CA6 #63A63C
analogous
#4A3CA6 #7F3CA6 #A63C98
triadic
#7F3CA6 #A67F3C #3CA67F
tetradic
#7F3CA6 #A64A3C #63A63C #3C98A6
square
#7F3CA6 #A64A3C #63A63C #3C98A6
split-complementary
#7F3CA6 #98A63C #3CA64A
monochromatic
#3A1C4C #5D2C79 #7F3CA6 #9D5BC4 #B888D4
Accessibility & contrast
On white
6.78
#7F3CA6 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.10
#7F3CA6 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F3CA6
6.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F3CA6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F3CA6 | 1.00 | 6.78 | 3.10 | 6.78 |
| #FFFFFF | 6.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.10 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0658A9
Deuteranopia (green-blind)
#305CA4
Tritanopia (blue-blind)
#7A516B
Achromatopsia (no color)
#5B5B5B
Design tokens & code
CSS
--color: #7f3ca6; /* rgb */ color: rgb(127, 60, 166); /* oklch */ color: oklch(49.2% 0.169 310.8);
Tailwind
colors: {
custom: {
50: '#a776c1',
500: '#7f3ca6',
950: '#000000',
},
}SCSS
$custom: #7f3ca6; $custom-light: #a776c1; $custom-dark: #000000;
JSON
{
"hex": "#7f3ca6",
"rgb": {
"r": 127,
"g": 60,
"b": 166
},
"hsl": {
"h": 277.925,
"s": 46.903,
"l": 44.314
},
"oklch": {
"l": 0.49215,
"c": 0.16919,
"h": 310.8
},
"luminance": 0.10497
}Semantic roles & 50–950 ramp
primary
#7F3CA6
secondary
#97BE7F
accent
#D75182
background
#FAF7FB
surface
#F4EDF7
border
#CEC8D0
text
#100912
muted
#7F7B81