A computer implemented method for generating a file color scheme, which is applied to an electronic device, wherein the method comprises: acquiring at least one changed picture in a target file, wherein the at least one changed picture is a picture newly added into the target file, or an existing picture which has changed in the target file; performing color analysis on the at least one changed picture to obtain a first color set of the at least one changed picture; and determining a target color set of the target file according to the first color set; determining a collocated color corresponding to each of colors in the target color set by searching a pre-established collocated color library, which includes a correspondence between a color and a collocated color; determining a collocated color set that matches the target color set based on the determined collocated colors; and generating a color scheme of the target file using the collocated color set, wherein, performing color analysis on the at least one changed picture to obtain a first color set of the at least one changed picture comprises: performing color analysis on the at least one changed picture to obtain colors included in the at least one changed picture and a color ratio of each of the colors; and determining the first color set of the at least one changed picture according to the colors included in the at least one changed picture and the color ratio of each of the colors, wherein the color ratio of each of the colors is a ratio of the number of pixels for each of the colors to the total number of pixels in the at least one changed picture; wherein determining a target color set of the target file according to the first color set comprises: if the at least one changed picture are all the pictures in the target file, determining the first color set as the target color set of the target file; and if the at least one changed picture is a part of pictures in the target file, merging the first color set and a second color set to obtain the target color set of the target file, wherein the second color set is a color set of an unchanged picture in the target file. acquiring at least one changed picture in a target file, wherein the at least one changed picture is a picture newly added into the target file, or an existing picture which has changed in the target file; performing color analysis on the at least one changed picture to obtain a first color set of the at least one changed picture; and determining a target color set of the target file according to the first color set; determining a collocated color corresponding to each of colors in the target color set by searching a pre-established collocated color library, which includes a correspondence between a color and a collocated color; determining a collocated color set that matches the target color set based on the determined collocated colors; and generating a color scheme of the target file using the collocated color set, wherein, performing color analysis on the at least one changed picture to obtain a first color set of the at least one changed picture comprises: performing color analysis on the at least one changed picture to obtain colors included in the at least one changed picture and a color ratio of each of the colors; and determining the first color set of the at least one changed picture according to the colors included in the at least one changed picture and the color ratio of each of the colors, wherein the color ratio of each of the colors is a ratio of the number of pixels for each of the colors to the total number of pixels in the at least one changed picture; wherein determining a target color set of the target file according to the first color set comprises: if the at least one changed picture are all the pictures in the target file, determining the first color set as the target color set of the target file; and if the at least one changed picture is a part of pictures in the target file, merging the first color set and a second color set to obtain the target color set of the target file, wherein the second color set is a color set of an unchanged picture in the target file. performing color analysis on the at least one changed picture to obtain colors included in the at least one changed picture and a color ratio of each of the colors; and determining the first color set of the at least one changed picture according to the colors included in the at least one changed picture and the color ratio of each of the colors, wherein the color ratio of each of the colors is a ratio of the number of pixels for each of the colors to the total number of pixels in the at least one changed picture; wherein determining a target color set of the target file according to the first color set comprises: if the at least one changed picture are all the pictures in the target file, determining the first color set as the target color set of the target file; and if the at least one changed picture is a part of pictures in the target file, merging the first color set and a second color set to obtain the target color set of the target file, wherein the second color set is a color set of an unchanged picture in the target file. if the at least one changed picture are all the pictures in the target file, determining the first color set as the target color set of the target file; and if the at least one changed picture is a part of pictures in the target file, merging the first color set and a second color set to obtain the target color set of the target file, wherein the second color set is a color set of an unchanged picture in the target file.