in GUI Development by

Hello, I am working on our GUI project and I am running into an issue when trying select a dark grey color and it keeps turning out green on my screen. After some researching and looking around I came across an article to post the color gradients and when I do this I am getting an interesting result. Please take a look, any help in the direction to resolve/fix would be greatly appreciated 

The Top is the graphic I am trying to display and the bottom is me taking a picture of the display with that same graphic

1 Answer

0 votes


first all, we have to have a look on the RGB565 color space - and in a second step, we can have a look on your display.

In general, some slight green appearing gray colors are caused by the different color granularity of the color components red, green and blue in case of RGB565. The green channel has a higher resolution compared to red and blue.

When you take a black to white gradient you have the following colors:

R [00 ... 1F] => 00
G [00 ... 3F] => 00
B [00 ... 1F] => 00

R [00 ... 1F] => 00
G [00 ... 3F] => 01
B [00 ... 1F] => 00

R [00 ... 1F] => 01
G [00 ... 3F] => 02
B [00 ... 1F] => 01

R [00 ... 1F] => 02
G [00 ... 3F] => 03
B [00 ... 1F] => 02 

The first gray value after black has slight green value of 1, but the red and blue components are still 0. The result is a slight green appearance.

This Image shows the color gradients in RGBA8888:

This image shows the resulting gradients in RGB565:

However, the described effect is not really noticeable.

Now, having a look on the photo of your display, the effect is a different one:

In your case, the higher red green and blue values are very saturated - and the lower values are missing.

Can you try to adjust the gamma values for your display?

Best regards,


Ask Embedded Wizard

Welcome to the question and answer site for Embedded Wizard users and UI developers.

Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!

Embedded Wizard Website | Privacy Policy | Imprint