+ 1

Is there a way to apply colours without the hexadecimal system

Html

6th Jun 2019, 7:18 PM
Abigail
Abigail - avatar
3 odpowiedzi
+ 2
You can do it with rgb(), it's the same as the hexadecimal system, but in base 10. Example: rgb(0, 0, 0) -> black rgb(255, 255, 255) -> white rgb(255, 0, 0) -> red rgb(0, 255, 0) -> green rgb(0, 0, 255) -> blue #777777 rgb(7 * 16 + 7, 7 * 16 + 7, 7 * 16 + 7) -> rgb(119, 119, 119)
6th Jun 2019, 7:27 PM
Airree
Airree - avatar
+ 1
Indeed. You can also refer to colors by name or by using rgb method rgb(255, 0, 0) will be a red colour👍🏼
6th Jun 2019, 7:28 PM
Trigger
Trigger - avatar
0
If you don't want to have to guess the RGB or Hex values, you can use a color picker. https://htmlcolorcodes.com/
6th Jun 2019, 8:35 PM
Chris Coder
Chris Coder - avatar