You are viewing a single thread.
View all comments View context
5 points

It’s a sequence of three hexadecimal numbers, two digits each. The first two digits denote the amount of red, the middle two green, the last two blue (#rrggbb).

0 to 9 represent the values 0 to 9, A is 11, B is 12, and so forth to F which is 15. For each of the three pairs of digits, you have to multiply the left one by 16 before adding the right one.

For example, 4A = 4 * 16 + 10 = 64 + 10 = 74. The highest possible value is FF = 15 * 16 + 15 = 240 + 15 = 255 and the lowest is 00 = 0 * 16 + 0 = 0.

#ff0000 is the maximum amount of red and zero green or blue, so a bright red. #ff00ff is the maximum amount of red and blue, but no green, a bright magenta. #8000ff is roughly twice as much blue as red, a shade of purple. #ff8080 is a pale red, #800000 a dark red.

If you need more explanation, look up hexadecimal number notation and hexcode colours.

permalink
report
parent
reply
3 points

Thank you so much! What an informative post!

permalink
report
parent
reply

dailygames

!dailygames@lemmy.zip

Create post

Community for daily games like Wordle, Jumblie, Connections etc.

Post your daily games and scores. Discover new games and discuss with others.

Find games

Share your results

It’s useful to wrap your results in a markdown codeblock to preserve the layout. Put three backticks ``` before and after your result to create a codeblock.

🟨🟨⬛⬛⬛
🟨🟩⬛⬛⬛
🟩🟩🟨🟨⬛
🟩🟩🟩🟩🟩

Rules

  • Be nice!
  • Don’t cheat!

Community stats

  • 638

    Monthly active users

  • 839

    Posts

  • 5.6K

    Comments