#7F3CB2#7F3CB2
#7F3CB2 is a mid, vivid violet. Relative luminance 0.110; OKLCH L 50.0% C 0.182 H 307.1°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).
Color values
| HEX | #7F3CB2 |
|---|---|
| RGB | rgb(127, 60, 178) |
| HSL | hsl(274, 50%, 47%) |
| HSV | hsv(274, 66%, 70%) |
| CMYK | cmyk(28.7%, 66.3%, 0%, 30.2%) |
| CIE-LAB | lab(39.51, 49.99, -51.32) |
| CIE-LCH | lch(39.51, 71.64, 314.25°) |
| OKLab | oklab(50.04% 0.1098 -0.1453) |
| OKLCH | oklch(50.04% 0.182 307.1) |
| XYZ | xyz(18.4024, 10.9583, 43.2566) |
| Luminance | 0.1096 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purply
#983FB2
ΔE00 5.27
Darkorchid
#9932CC
ΔE00 5.38
Royal Purple
#7851A9
ΔE00 5.67
Rebeccapurple
#663399
ΔE00 5.95
Purple (survey)
#7E1E9C
ΔE00 6.30
Darkviolet
#9400D3
ΔE00 6.70
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F3CB2 #6FB23C
analogous
#443CB2 #7F3CB2 #B23CAA
triadic
#7F3CB2 #B27F3C #3CB27F
tetradic
#7F3CB2 #B2443C #6FB23C #3CAAB2
square
#7F3CB2 #B2443C #6FB23C #3CAAB2
split-complementary
#7F3CB2 #AAB23C #3CB244
monochromatic
#3E1D56 #5E2D84 #7F3CB2 #9D61CA #B98FD9
Accessibility & contrast
On white
6.58
#7F3CB2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.19
#7F3CB2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F3CB2
6.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F3CB2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F3CB2 | 1.00 | 6.58 | 3.19 | 6.58 |
| #FFFFFF | 6.58 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.19 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.58 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005BB6
Deuteranopia (green-blind)
#215EAF
Tritanopia (blue-blind)
#775572
Achromatopsia (no color)
#5D5D5D
Design tokens & code
CSS
--color: #7f3cb2; /* rgb */ color: rgb(127, 60, 178); /* oklch */ color: oklch(50.0% 0.182 307.1);
Tailwind
colors: {
custom: {
50: '#a876ca',
500: '#7f3cb2',
950: '#000000',
},
}SCSS
$custom: #7f3cb2; $custom-light: #a876ca; $custom-dark: #000000;
JSON
{
"hex": "#7f3cb2",
"rgb": {
"r": 127,
"g": 60,
"b": 178
},
"hsl": {
"h": 274.068,
"s": 49.58,
"l": 46.667
},
"oklch": {
"l": 0.50036,
"c": 0.18212,
"h": 307.1
},
"luminance": 0.10958
}Semantic roles & 50–950 ramp
primary
#7F3CB2
secondary
#A1C486
accent
#D94F8B
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100913
muted
#7F7B82