Dynamic color adjustment of electronic content
First Claim
1. A method comprising:
- determining, by a computer system comprising one or more computer processors, a first background color corresponding to a color theme for use in presentation of electronic content, the color theme specifying a first text color for displaying text;
converting, by the computer system, the first text color to hue-saturation-value (HSV) color space;
increasing, by the computer system, a brightness component of the first text color to generate a second text color;
determining that the brightness component has been increased to a maximum value;
determining that a first contrast ratio between the second text color and the first background color does not satisfy a first threshold contrast ratio;
automatically decreasing the brightness component until the first threshold contrast ratio is satisfied;
determining a third text color with the brightness component that satisfies the first threshold contrast ratio;
identifying a second background color that corresponds to the color theme, wherein the second background color is different than the first background color;
generating a third background color that is a blend of the first background color and the second background color;
determining that a second contrast ratio between the third text color and the third background color satisfies a second threshold contrast ratio; and
displaying, by the computer system, the electronic content using the third background color, the electronic content including text having the third text color.
1 Assignment
0 Petitions
Accused Products
Abstract
Systems, methods, and computer-readable media are disclosed for dynamic color adjustment of electronic content. In one embodiment, a system may determine a first background color corresponding to a color theme for use in presentation of electronic content, the color theme further specifying a first text color for displaying text. The system may convert the first text color to hue-saturation-value (HSV) color space, and modify a brightness component of the first text color to generate a second text color. The system may determine a first contrast ratio between the second text color and the first background color, and determine that the first contrast ratio satisfies a first threshold contrast ratio. The system may display the electronic content using the first background color, the electronic content including text having the second text color.
31 Citations
19 Claims
-
1. A method comprising:
-
determining, by a computer system comprising one or more computer processors, a first background color corresponding to a color theme for use in presentation of electronic content, the color theme specifying a first text color for displaying text; converting, by the computer system, the first text color to hue-saturation-value (HSV) color space; increasing, by the computer system, a brightness component of the first text color to generate a second text color; determining that the brightness component has been increased to a maximum value; determining that a first contrast ratio between the second text color and the first background color does not satisfy a first threshold contrast ratio; automatically decreasing the brightness component until the first threshold contrast ratio is satisfied; determining a third text color with the brightness component that satisfies the first threshold contrast ratio; identifying a second background color that corresponds to the color theme, wherein the second background color is different than the first background color; generating a third background color that is a blend of the first background color and the second background color; determining that a second contrast ratio between the third text color and the third background color satisfies a second threshold contrast ratio; and displaying, by the computer system, the electronic content using the third background color, the electronic content including text having the third text color. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A computer device comprising:
-
at least one memory that stores computer-executable instructions; and at least one processor configured to access the at least one memory and execute the computer-executable instructions to; determine a first background color, the first background color corresponding to a color theme for use in presentation of electronic content, the color theme further specifying a first text color for displaying text; convert the first text color to hue-saturation-value (HSV) color space; modify a brightness component of the first text color to generate a second text color; blend the first background color with a second background color to generate a third background color; determine a first contrast ratio between the second text color and the third background color; determine that the first contrast ratio satisfies a first threshold contrast ratio; determine that a second contrast ratio between the third background color and the second background color satisfies a second threshold contrast ratio; and display the electronic content using the first background color, the electronic content including text having the second text color. - View Dependent Claims (11, 12, 13, 14, 15)
-
-
16. A device comprising:
-
at least one memory that stores computer-executable instructions; and at least one processor configured to access the at least one memory and execute the computer-executable instructions to; determine a first background color, the first background color corresponding to a color theme for use in presentation of electronic content, the color theme further specifying a first text color for displaying text; identify a second background color that is different than the first background color, the second background color corresponding to the color theme; blend the first background color with the second background color to generate a third background color; determine that a first contrast ratio between the third background color and the second background color satisfies a first threshold contrast ratio; convert the first text color to hue-saturation-value (HSV) color space; increase a brightness component of the first text color to generate a second text color; determine that the brightness component has been increased to a maximum value; determine that a second contrast ratio between the second text color and the third background color is not satisfied; decrease the brightness component until the second threshold contrast ratio is satisfied; determine a third text color with the brightness component that satisfies the second threshold contrast ratio; and cause display of the electronic content using the third background color, the electronic content including text having the third text color. - View Dependent Claims (17, 18, 19)
-
Specification