Contrast-ratio-based color generation
First Claim
1. In a digital medium environment for contrast-ratio-based color generation, a method implemented by a computing device, the method comprising:
- displaying a user interface on a display device of the computing device, the user interface including a background color and content colors of content displayed in the user interface;
receiving an input that changes the background color in the user interface;
calculating a brightness value of the background color;
calculating target contrast ratios of the respective content colors based on the brightness value of the background color;
generating color values for new content colors based on the calculated target contrast ratios of the respective content colors;
calculating respective brightness values of the new content colors based on the generated color values for the new content colors; and
adjusting a saturation of the new content colors based on the calculated respective brightness values of the new content colors.
3 Assignments
0 Petitions
Accused Products
Abstract
In implementations of contrast-ratio-based color generation, a user interface displays on a display device of a computing device, where the user interface includes a background color and content colors of content displayed in the user interface. A color generation module implemented by the computing device receives an input that changes the background color in the user interface. The color generation module can then calculate a brightness value of the background color, calculate target contrast ratios of the respective content colors based on the brightness value of the background color, generate color values for new content colors based on the calculated target contrast ratios of the respective content colors, calculate respective brightness values of the new content colors based on the generated color values for the new content colors, and adjust a saturation and hue of the new content colors based on the calculated respective brightness values of the new content colors.
-
Citations
20 Claims
-
1. In a digital medium environment for contrast-ratio-based color generation, a method implemented by a computing device, the method comprising:
-
displaying a user interface on a display device of the computing device, the user interface including a background color and content colors of content displayed in the user interface; receiving an input that changes the background color in the user interface; calculating a brightness value of the background color; calculating target contrast ratios of the respective content colors based on the brightness value of the background color; generating color values for new content colors based on the calculated target contrast ratios of the respective content colors; calculating respective brightness values of the new content colors based on the generated color values for the new content colors; and adjusting a saturation of the new content colors based on the calculated respective brightness values of the new content colors. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. In a digital medium environment for contrast-ratio-based color generation, a method of a color generation module implemented by a computing device, the method comprising:
-
receiving an input as a background color of a user interface; calculating a brightness value of the background color; receiving an additional input as a content color of content in the user interface; determining a hue value of the content color; calculating a target contrast ratio of the content color based on the brightness value of the background color and the hue value of the content color; generating color values for a new content color based on the calculated target contrast ratio of the content color; calculating a brightness value of the new content color based on the generated color values for the new content color; and adjusting at least one of a saturation and a hue of the new content color based on the calculated brightness value of the new content color and a hue value of the new content color. - View Dependent Claims (11, 12, 13, 14, 15, 16, 17, 18)
-
-
19. A computing device implemented for contrast-ratio-based color generation, the computing device comprising:
-
a display device to display a user interface having a background color, the user interface including content colors of content displayed in the user interface; a processor system configured to execute a color generation module implemented to perform operations comprising to; receive an input that changes the background color in the user interface; calculate a brightness value of the background color; calculate target contrast ratios of the respective content colors based on the brightness value of the background color; generate color values for new content colors based on the calculated target contrast ratios of the respective content colors; calculate respective brightness values of the new content colors based on the generated color values for the new content colors; and adjust at least one of a saturation and a hue of the new content colors based on the calculated respective brightness values of the new content colors. - View Dependent Claims (20)
-
Specification