# US 2021/0342037 A1 · Palette management in user interface

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0342037 A1
- Document ID: US20210342037A1
- Status: Published application
- Kind: A1
- Application number: 16/861,410
- Filed: 2020-04-29
- Published: 2021-11-04
- Earliest claimed: 2020-04-29
- Assignees: salesforce.com, inc.
- Applicants: salesforce.com, inc.
- Inventors: Phil Calvin
- Web page: https://patentgrep.com/patent/US20210342037A1

## CPC

- G06F 3/0481: based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F 9/451: Execution arrangements for user interfaces
- G06F 40/103: Formatting, i.e. changing of presentation of documents (automatic justification G06F40/189; automatic line break hyphenation G06F40/191)
- G06F 40/166: Editing, e.g. inserting or deleting
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Systems and methods for generating a color scheme associated with a user interface are described. A server computing system receives a first color to be used for the user interface. The server computing system determines a second color, a third color and a fourth color for the user interface, each of the first, second, third and fourth color associated with a frame of the user interface. The second color is configured to be a complementary color to the first color based on a color wheel. The third color is configured to be a monochromatic color to the first color based on the color wheel. The fourth color is configured to be a black or a white color depending on a luminosity of the first color. The server computing system determines a text color for a text to be displayed with the first color, the second color and the third color. The text color is determined based on a luminosity of the color the text is be displayed with. The first color is a primary color, the second color is a secondary color, the third color is an error color, and the fourth color is a background color for the user interface.

## Claims

### Claim 1

A computer-implemented method to generate a color scheme associated with a user interface, the method comprising:
receiving, by a server computing system, a first color to be used for the user interface;
determining, by the server computing system, a second color, a third color and a fourth color for the user interface, each of the first, second, third and fourth color associated with a frame of the user interface, the second color configured to be a complementary color to the first color based on a color wheel, the third color configured to be a monochromatic color to the first color based on the color wheel, and the fourth color configured to be a black or a white color depending on a luminosity of the first color; and
determining, by the server computing system, a text color for a text to be displayed with the first color, the second color and the third color, wherein the text color is determined at least based on a luminosity of the color the text is be displayed with.

### Claim 2 (depends on 1)

The method of claim 1, wherein the first color is a primary color, the second color is a secondary color, the third color is an error color, and the fourth color is a background color.

### Claim 3 (depends on 2)

The method of claim 2, wherein the fourth color is white when the luminosity of the first color violates a first threshold value; otherwise the fourth color is black.

### Claim 4 (depends on 3)

The method of claim 3, further comprising determining, by the server computing system, a fifth color for the user interface based on luminosity of the fourth color.

### Claim 5 (depends on 4)

The method of claim 4, wherein the fifth color is a surface color and is determined by reducing brightness of the fourth color by a delta value based on the luminosity of the fourth color violating a second threshold value; otherwise, the fifth color is determined by increasing the brightness of the fourth color by the delta value.

### Claim 6 (depends on 5)

The method of claim 5, wherein the text color is further determined based on a category of text being one of normal text, highlight text and emphasis text.

### Claim 7 (depends on 6)

The method of claim 6, wherein the text color is further determined based on a base color of black or white, and wherein the text color is adjusted based on the category of text and based on determining whether the luminosity of the color that the text is displayed with violates a third threshold value.

### Claim 8

A system for generating a color scheme associated with a user interface comprising
one or more processors; and
a non-transitory computer readable medium storing a plurality of instructions, which when executed, cause the one or more processors of a server computing system to:
receive a first color to be used for the user interface;
determine a second color, a third color and a fourth color for the user interface, each of the first, second, third and fourth color associated with a frame of the user interface, the second color configured to be a complementary color to the first color based on a color wheel, the third color configured to be a monochromatic color to the first color based on the color wheel, and the fourth color configured to be a black or a white color depending on a luminosity of the first color; and
determine a text color for a text to be displayed with the first color, the second color and the third color, wherein the text color is determined at least based on a luminosity of the color the text is be displayed with.

### Claim 9 (depends on 8)

The system of claim 8, wherein the first color is a primary color, the second color is a secondary color, the third color is an error color, and the fourth color is a background color.

### Claim 10 (depends on 9)

The system of claim 9, wherein the fourth color is white when the luminosity of the first color violates a first threshold value; otherwise the fourth color is black.

### Claim 11 (depends on 10)

The system of claim 10, further comprising instructions when executed to determine a fifth color for the user interface based on luminosity of the fourth color.

### Claim 12 (depends on 11)

The system of claim 11, wherein the fifth color is a surface color and is determined by reducing brightness of the fourth color by a delta value based on the luminosity of the fourth color violating a second threshold value; otherwise, the fifth color is determined by increasing the brightness of the fourth color by the delta value.

### Claim 13 (depends on 12)

The system of claim 12, wherein the text color is further determined based on a category of text being one of normal text, highlight text and emphasis text.

### Claim 14 (depends on 13)

The system of claim 13, wherein the text color is further determined based on a base color of black or white, and wherein the text color is adjusted based on the category of text and based on determining whether the luminosity of the color that the text is displayed with violates a third threshold value.

### Claim 15

A computer program product for generating a color scheme associated with a user interface comprising computer-readable program code to be executed by one or more processors when retrieved from a non-transitory computer-readable medium, the program code including instructions to:
receive a first color to be used for the user interface;
determine a second color, a third color and a fourth color for the user interface, each of the first, second, third and fourth color associated with a frame of the user interface, the second color configured to be a complementary color to the first color based on a color wheel, the third color configured to be a monochromatic color to the first color based on the color wheel, and the fourth color configured to be a black or a white color depending on a luminosity of the first color; and
determine a text color for a text to be displayed with the first color, the second color and the third color, wherein the text color is determined at least based on a luminosity of the color the text is be displayed with.

### Claim 16 (depends on 15)

The computer program product of claim 15, wherein the first color is a primary color, the second color is a secondary color, the third color is an error color, and the fourth color is a background color.

### Claim 17 (depends on 16)

The computer program product of claim 16, wherein the fourth color is white when the luminosity of the first color violates a first threshold value; otherwise the fourth color is black.

### Claim 18 (depends on 17)

The computer program product of claim 17, further comprising instructions to determine a fifth color for the user interface based on luminosity of the fourth color.

### Claim 19 (depends on 18)

The computer program product of claim 18, wherein the fifth color is a surface color and is determined by reducing brightness of the fourth color by a delta value based on the luminosity of the fourth color violating a second threshold value; otherwise, the fifth color is determined by increasing the brightness of the fourth color by the delta value.

### Claim 20 (depends on 19)

The computer program product of claim 19, wherein the text color is further determined based on a category of text being one of normal text, highlight text and emphasis text.

### Claim 21 (depends on 20)

The computer program product of claim 20, wherein the text color is further determined based on a base color of black or white, and wherein the text color is adjusted based on the category of text and based on determining whether the luminosity of the color that the text is displayed with violates a third threshold value.
