css color code example
Example 1: css background color
body {
background-color: green;
}
Example 2: cout color
#define RESET "\033[0m"
#define BLACK "\033[30m"
#define RED "\033[31m"
#define GREEN "\033[32m"
#define YELLOW "\033[33m"
#define BLUE "\033[34m"
#define MAGENTA "\033[35m"
#define CYAN "\033[36m"
#define WHITE "\033[37m"
#define BOLDBLACK "\033[1m\033[30m"
Example 3: css color
color: rgb(255, 99, 71)
color: #ff6347
color: hsl(9, 100%, 64%)
Example 4: red css color codes
Following could be the CSS color codes which you can use in your CSS File
1. You can write simply "Red".
2. #FF0000
3. #F00
4. RGB(255, 0, 0)
Example 5: css light grey
#selector{
color:lightgrey;
}
Example 6: text color css
.YourClass {
color: #ff0000;
}