#7F3CA2#7F3CA2
#7F3CA2 is a mid, vivid violet. Relative luminance 0.104; OKLCH L 49.0% C 0.165 H 312.1°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).
Color values
| HEX | #7F3CA2 |
|---|---|
| RGB | rgb(127, 60, 162) |
| HSL | hsl(279, 46%, 44%) |
| HSV | hsv(279, 63%, 64%) |
| CMYK | cmyk(21.6%, 63%, 0%, 36.5%) |
| CIE-LAB | lab(38.47, 46.32, -43.46) |
| CIE-LCH | lch(38.47, 63.52, 316.82°) |
| OKLab | oklab(48.95% 0.1107 -0.1223) |
| OKLCH | oklch(48.95% 0.165 312.1) |
| XYZ | xyz(16.8887, 10.3528, 35.2840) |
| Luminance | 0.1035 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purply
#983FB2
ΔE00 5.18
Purple (survey)
#7E1E9C
ΔE00 5.29
Rebeccapurple
#663399
ΔE00 5.41
Royal Purple
#7851A9
ΔE00 5.80
Warm Purple
#952E8F
ΔE00 6.92
Darkorchid
#9932CC
ΔE00 7.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F3CA2 #5FA23C
analogous
#4C3CA2 #7F3CA2 #A23C92
triadic
#7F3CA2 #A27F3C #3CA27F
tetradic
#7F3CA2 #A24C3C #5FA23C #3C92A2
square
#7F3CA2 #A24C3C #5FA23C #3C92A2
split-complementary
#7F3CA2 #92A23C #3CA24C
monochromatic
#391B49 #5C2B75 #7F3CA2 #9E59C2 #B886D2
Accessibility & contrast
On white
6.84
#7F3CA2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.07
#7F3CA2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F3CA2
6.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F3CA2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F3CA2 | 1.00 | 6.84 | 3.07 | 6.84 |
| #FFFFFF | 6.84 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.07 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.84 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1257A5
Deuteranopia (green-blind)
#345CA0
Tritanopia (blue-blind)
#7B4F69
Achromatopsia (no color)
#5B5B5B
Design tokens & code
CSS
--color: #7f3ca2; /* rgb */ color: rgb(127, 60, 162); /* oklch */ color: oklch(49.0% 0.165 312.1);
Tailwind
colors: {
custom: {
50: '#a776be',
500: '#7f3ca2',
950: '#000000',
},
}SCSS
$custom: #7f3ca2; $custom-light: #a776be; $custom-dark: #000000;
JSON
{
"hex": "#7f3ca2",
"rgb": {
"r": 127,
"g": 60,
"b": 162
},
"hsl": {
"h": 279.412,
"s": 45.946,
"l": 43.529
},
"oklch": {
"l": 0.48951,
"c": 0.1649,
"h": 312.1
},
"luminance": 0.10352
}Semantic roles & 50–950 ramp
primary
#7F3CA2
secondary
#93BC7D
accent
#D6527F
background
#FAF7FB
surface
#F4EDF7
border
#CEC8D0
text
#100912
muted
#7F7B81