Check out example codes for "css color codes". It will help you in understanding the concepts better.

Code Example 1

/* CSS color codes work in format like HTML (rgb, color codes[#123456])*/

/* So here is a way to use this! */

<style>
	/* you can use any piece of the code for this */
	.example{
		color: #ABCDEF;
	}
	.example2{
		color: rgb(50, 50, 50);
	}
</style>

/* so yeah, upvote this answer if this helped! */

Code Example 2

# HEX COLOR CODES
Format: #rrggbb
example: #abcdef

# How to decode?
F -- Full/Max value.
0 -- Off/Min value.

Color codes can range from #000000 (black) to #ffffff (white)
...or anything in between, #5a8d33 (Cactus green)

# Where can you easily find/create one?
Google has an built in HEX color picker
https://www.google.com/search?q=color+picker
W3Schools has a color code finder
https://www.w3schools.com/colors/colors_picker.asp

Code Example 3

Use htmlcolorcodes.com for this

Code Example 4

paletton is what you want
It even gives you presets based on the colour rules
See below link

Learn ReactJs, React Native from akashmittal.com