16bit colour hex codes

Go To Last Post
12 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Guy's I know half of you fella's hate my insane questions.  Anyway, I'm looking for a list of 16bit colour codes.  I've trawled the web for a couple of days and have had no luck in finding said hex codes.  I did have a list but I think it was deleted and I have no idea where I obtained the list.

 

Thanks guys.

This topic has a solution.
Last Edited: Tue. Sep 6, 2022 - 09:45 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1


Anyway, I'm looking for a list of 16bit colour codes. 

how many of them? Are you using RGB  or RGBA?

 

 

When in the dark remember-the future looks brighter than ever.   I look forward to being able to predict the future!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I'm not sure how much help this table will be because it is for 24-bit colors: 8 bits each for Red, Green, and Blue in that order.

The 16-bit colors always have 5 bits (bits 15-11) for the Red value, 6 bits (10-6) for Green, and 5 bits (bits 4-0) for Blue level. Human eyes are more sensitive to green, hence an additional 16 levels.

  You can convert the 24-bit colors to 16-bit by separating the three colors out of the unsigned long into three bytes:RGB.  Then shift the color levels to fit the 16-bit allocations for each color, and combine into a 16-bit value.  my16bitColor = (red>>3) << 10) | (green>>2)<< 5) | ((blue>>3) );

 

  
#define BLACK            0x000000
#define NAVY            0x000080
#define DARKBLUE        0x00008B
#define MEDIUMBLUE        0x0000CD
#define BLUE            0x0000FF
#define DARKGREEN        0x006400
#define GREEN            0x008000
#define TEAL            0x008080
#define DARKCYAN        0x008B8B
#define DEEPSKYBLUE        0x00BFFF
#define DARKTURQUOISE        0x00CED1
#define MEDIUMSPRINGGREEN    0x00FA9A
#define LIME            0x00FF00
#define SPRINGGREEN        0x00FF7F
#define AQUA            0x00FFFF
#define CYAN            0x00FFFF
#define MIDNIGHTBLUE        0x191970
#define DODGERBLUE        0x1E90FF
#define LIGHTSEAGREEN        0x20B2AA
#define FORESTGREEN        0x228B22
#define SEAGREEN        0x2E8B57
#define DARKSLATEGRAY        0x2F4F4F
#define LIMEGREEN        0x32CD32
#define MEDIUMSEAGREEN        0x3CB371
#define TURQUOISE        0x40E0D0
#define ROYALBLUE        0x4169E1
#define STEELBLUE        0x4682B4
#define DARKSLATEBLUE        0x483D8B
#define MEDIUMTURQUOISE        0x48D1CC
#define INDIGO             0x4B0082
#define DARKOLIVEGREEN        0x556B2F
#define CADETBLUE        0x5F9EA0
#define CORNFLOWERBLUE        0x6495ED
#define MEDIUMAQUAMARINE    0x66CDAA
#define DIMGRAY            0x696969
#define SLATEBLUE        0x6A5ACD
#define OLIVEDRAB        0x6B8E23
#define SLATEGRAY        0x708090
#define LIGHTSLATEGRAY        0x778899
#define MEDIUMSLATEBLUE    0x7B68EE
#define LAWNGREEN        0x7CFC00
#define CHARTREUSE        0x7FFF00
#define AQUAMARINE        0x7FFFD4
#define MAROON            0x800000
#define PURPLE            0x800080
#define OLIVE            0x808000
#define GRAY            0x808080
#define SKYBLUE            0x87CEEB
#define LIGHTSKYBLUE        0x87CEFA
#define BLUEVIOLET        0x8A2BE2
#define DARKRED            0x8B0000
#define DARKMAGENTA        0x8B008B
#define SADDLEBROWN        0x8B4513
#define DARKSEAGREEN        0x8FBC8F
#define LIGHTGREEN        0x90EE90
#define MEDIUMPURPLE        0x9370DB
#define DARKVIOLET        0x9400D3
#define PALEGREEN        0x98FB98
#define DARKORCHID        0x9932CC
#define YELLOWGREEN        0x9ACD32
#define SIENNA            0xA0522D
#define BROWN            0xA52A2A
#define DARKGRAY        0xA9A9A9
#define LIGHTBLUE        0xADD8E6
#define GREENYELLOW        0xADFF2F
#define PALETURQUOISE            0xAFEEEE
#define LIGHTSTEELBLUE        0xB0C4DE
#define POWDERBLUE        0xB0E0E6
#define FIREBRICK        0xB22222
#define DARKGOLDENROD        0xB8860B
#define MEDIUMORCHID        0xBA55D3
#define ROSYBROWN        0xBC8F8F
#define DARKKHAKI        0xBDB76B
#define SILVER            0xC0C0C0
#define MEDIUMVIOLETRED            0xC71585
#define INDIANRED         0xCD5C5C
#define PERU            0xCD853F
#define CHOCOLATE        0xD2691E
#define TAN            0xD2B48C
#define LIGHTGRAY        0xD3D3D3
#define THISTLE            0xD8BFD8
#define ORCHID            0xDA70D6
#define GOLDENROD        0xDAA520
#define PALEVIOLETRED        0xDB7093
#define CRIMSON            0xDC143C
#define GAINSBORO        0xDCDCDC
#define PLUM            0xDDA0DD
#define BURLYWOOD        0xDEB887
#define LIGHTCYAN        0xE0FFFF
#define LAVENDER        0xE6E6FA
#define DARKSALMON        0xE9967A
#define VIOLET            0xEE82EE
#define PALEGOLDENROD        0xEEE8AA
#define LIGHTCORAL        0xF08080
#define KHAKI            0xF0E68C
#define ALICEBLUE        0xF0F8FF
#define HONEYDEW        0xF0FFF0
#define AZURE            0xF0FFFF
#define SANDYBROWN        0xF4A460
#define WHEAT            0xF5DEB3
#define BEIGE            0xF5F5DC
#define WHITESMOKE        0xF5F5F5
#define MINTCREAM        0xF5FFFA
#define GHOSTWHITE        0xF8F8FF
#define SALMON            0xFA8072
#define ANTIQUEWHITE        0xFAEBD7
#define LINEN            0xFAF0E6
#define LIGHTGOLDENRODYELLOW    0xFAFAD2
#define OLDLACE            0xFDF5E6
#define RED            0xFF0000
#define FUCHSIA            0xFF00FF
#define MAGENTA            0xFF00FF
#define DEEPPINK        0xFF1493
#define ORANGERED        0xFF4500
#define TOMATO            0xFF6347
#define HOTPINK            0xFF69B4
#define CORAL            0xFF7F50
#define DARKORANGE        0xFF8C00
#define LIGHTSALMON        0xFFA07A
#define ORANGE            0xFFA500
#define LIGHTPINK        0xFFB6C1
#define PINK            0xFFC0CB
#define GOLD            0xFFD700
#define PEACHPUFF        0xFFDAB9
#define NAVAJOWHITE        0xFFDEAD
#define MOCCASIN        0xFFE4B5
#define BISQUE            0xFFE4C4
#define MISTYROSE        0xFFE4E1
#define BLANCHEDALMOND        0xFFEBCD
#define PAPAYAWHIP        0xFFEFD5
#define LAVENDERBLUSH        0xFFF0F5
#define SEASHELL        0xFFF5EE
#define CORNSILK        0xFFF8DC
#define LEMONCHIFFON        0xFFFACD
#define FLORALWHITE        0xFFFAF0
#define SNOW            0xFFFAFA
#define YELLOW            0xFFFF00
#define LIGHTYELLOW        0xFFFFE0
#define IVORY            0xFFFFF0
#define WHITE            0xFFFFFF

Last Edited: Tue. Sep 6, 2022 - 05:17 PM
This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

That's what I was thinking on doing  Simonett.  Thanks mate.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Fianawarrior wrote:
I've trawled the web for a couple of days and have had no luck in finding said hex codes. 

You seriously need a google fu booster pill.

 

Anyway Simonetta's list is not referenced. Those names could mean anything. However I do see some name matches with my HTML suggestion below

 

I'd vote for the standard HTML colour names supported by all compliant browsers.

 

https://www.w3schools.com/colors/colors_hex.asp

 

Less than 3 seconds of googling

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0



The 16-bit colors always have 5 bits (bits 15-11) for the Red value, 6 bits (10-6) for Green, and 5 bits (bits 4-0) for Blue level

Well, there this RGB (which is probably the most common) and there is also RGBA  

I suppose none of this means too much---just adjust until it looks the way you want.

Names like robin blue or chili pepper red only get you in the ballpark.

 

When in the dark remember-the future looks brighter than ever.   I look forward to being able to predict the future!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I wonder how when converting 24-bit RGB to RGB565 whether rounding versus truncation makes any difference.

 

I've noticed on some TFT equipped devices the colours sometimes look a bit off.

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

N.Winterbottom wrote:

I wonder how when converting 24-bit RGB to RGB565 whether rounding versus truncation makes any difference.

 

I've noticed on some TFT equipped devices the colours sometimes look a bit off.

 

 

The answer is yes... but as with all things, it depends on the image you're displaying and the device you're displaying it with.

 

The human eye is pretty good at detecting discontinuities, and the quantisation errors you get when reducing to a lower bit count is a classic example. You'll likely notice it when you have a smooth gradation in colour or luminance, say in the sky of a landscape. Instead of that smooth shading, you see steps across the sky. Similarly in an image of a face, you might see steps rather than a smooth gradation. (My naive searching for images produced lots of hits but no actual examples!)

 

In the days when this really mattered - relatively large image sizes, not enough colours in the display, and not enough memory - there were dithering techniques which smeared the error spatially and gave a more palatable colour gradient at the expense of resolution. There were also tricks that could be played with palettes, selecting more palette entries to the colours most used in an image - though that was not as simple as dithering and was difficult to get a generally 'nice' output.

 

Oddly enough, the human eye doesn't really care about absolute colour and isn't good at judging it. It's evolved to be useful to the human in a range of colour temperature light - from sunrise/sunset at perhaps 1700K to high noon which might be 5000 or 10000K. It also has to cope with low light when there is no colour detection at all. I guess the sensitivity to smoothness and discontinuity might have something to do with the ability to see a bit of unexpected image and to decide with some rapidity whether that's harmless, or a saber-toothed tiger...

 

Neil

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Gotta laugh at this color discussion.

 

I was at a meeting this evening where we were discussing up-dates for 2023 for the EMS Protocols.

The EMS Protocols are the instructions on how EMS is to treat different conditions, and particularly the medications that the Medics can use, their dose, route of administration, etc.

 

So, up on the screen, (PowerPoint display), was a Protocol, and I said: "The left column, middle, in the green box, I think..."

I then said: "The left column, the purple box, I think..."  and I got a ton of harassment and grief.

To me the bottom box appeared purple, to others it appeared blue.

 

Oh well, at least I can read the stop lights when I'm driving!

 

Second comment,

In the table above, isn't "Transparent White" a misnomer?

 

Either its transparent, or its white...

I'll back out of this discussion now, as clearly discerning specific colors isn't my thing!

 

JC

 

An example of an EMS Protocol.

And, for what it's worth, in the jpg below the blue boxes do appear blue to me.

But they surely didn't on the PowerPoint earlier tonight...

 

 

Last Edited: Thu. Sep 8, 2022 - 01:10 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

DocJC wrote:
In the table above, isn't "Transparent White" a misnomer?

No - That 16-bit RGBA layout is one I've not seen before but the word "Transparent" there refers to the Transparency Channel. Technically called Alpha Channel where in that case A is not zero.

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0


N.Winterbottom wrote:

DocJC wrote:

In the table above, isn't "Transparent White" a misnomer?

 

No ...

 

You can put lipstick on a pig, but it is still a pig.

I've never met a pig I didn't like, as long as you have some salt and pepper.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

When my daughter was little we went to the store to get some light bulbs for the Christmas lights

I asked her what color we should get and she said brown.

Was an interesting thing to explain!

When in the dark remember-the future looks brighter than ever.   I look forward to being able to predict the future!