+ 4
In HTML how is one able to tell like this combination of hexadecimal values and numbers or just a number is this certain color.
2 Answers
+ 2
partly yoy can guess the resulting color of a hexadecimal value by applying some basic logic. either rgb values ranging from 0 to 255 or hexadecimal values ranging from 0 to FF. both are the same.
Think of each color as a combination of the three basic colors. even better: as 3 rays of light in those colors: red.green.blue.
255.255.255 means all colors in their brightest form. which us white. 0.0.0 means absence of light: which corresponds to black. equal numbers for each three represent different shades of grey.
255.0.0 represents pure red. 0.255.0 is pure green and 0.0.255 is pure blue. the higher a number is, the moe it is close to that color. for example 45.204.126. the highest number 204 corresponds to the green channel so this rgb value will give a green(ish) color.
0
@storm good explanation đđ,
hope this code helps in your color testing
https://code.sololearn.com/W5Of8safsGpc/?ref=app