+ 1
Is there a way to apply colours without the hexadecimal system
Html
3 ответов
+ 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)
+ 1
Indeed. You can also refer to colors by name or by using rgb method
rgb(255, 0, 0) will be a red colour👍🏼
0
If you don't want to have to guess the RGB or Hex values, you can use a color picker.
https://htmlcolorcodes.com/