#7F3CB6#7F3CB6
#7F3CB6 is a mid, vivid violet. Relative luminance 0.111; OKLCH L 50.3% C 0.186 H 305.9°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).
Color values
| HEX | #7F3CB6 |
|---|---|
| RGB | rgb(127, 60, 182) |
| HSL | hsl(273, 50%, 47%) |
| HSV | hsv(273, 67%, 71%) |
| CMYK | cmyk(30.2%, 67%, 0%, 28.6%) |
| CIE-LAB | lab(39.78, 50.93, -53.24) |
| CIE-LCH | lch(39.78, 73.67, 313.73°) |
| OKLab | oklab(50.32% 0.1094 -0.1509) |
| OKLCH | oklch(50.32% 0.186 305.9) |
| XYZ | xyz(18.8099, 11.1213, 45.4026) |
| Luminance | 0.1112 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 5.07
Purply
#983FB2
ΔE00 5.47
Royal Purple
#7851A9
ΔE00 5.82
Blueviolet
#8A2BE2
ΔE00 6.23
Rebeccapurple
#663399
ΔE00 6.29
Bluey Purple
#6241C7
ΔE00 6.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F3CB6 #73B63C
analogous
#423CB6 #7F3CB6 #B63CB0
triadic
#7F3CB6 #B67F3C #3CB67F
tetradic
#7F3CB6 #B6423C #73B63C #3CB0B6
square
#7F3CB6 #B6423C #73B63C #3CB0B6
split-complementary
#7F3CB6 #B0B63C #3CB642
monochromatic
#3F1E5A #5F2D88 #7F3CB6 #9D63CC #BA91DB
Accessibility & contrast
On white
6.51
#7F3CB6 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.22
#7F3CB6 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F3CB6
6.51:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F3CB6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F3CB6 | 1.00 | 6.51 | 3.22 | 6.51 |
| #FFFFFF | 6.51 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.22 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.51 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005CBA
Deuteranopia (green-blind)
#1A5EB3
Tritanopia (blue-blind)
#755774
Achromatopsia (no color)
#5E5E5E
Design tokens & code
CSS
--color: #7f3cb6; /* rgb */ color: rgb(127, 60, 182); /* oklch */ color: oklch(50.3% 0.186 305.9);
Tailwind
colors: {
custom: {
50: '#a876cd',
500: '#7f3cb6',
950: '#000000',
},
}SCSS
$custom: #7f3cb6; $custom-light: #a876cd; $custom-dark: #000000;
JSON
{
"hex": "#7f3cb6",
"rgb": {
"r": 127,
"g": 60,
"b": 182
},
"hsl": {
"h": 272.951,
"s": 50.413,
"l": 47.451
},
"oklch": {
"l": 0.5032,
"c": 0.18643,
"h": 305.9
},
"luminance": 0.11121
}Semantic roles & 50–950 ramp
primary
#7F3CB6
secondary
#A4C688
accent
#DA4E8D
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100913
muted
#7F7B82