Converting color name to hexadecimal values

237 Views Asked by At

In order to perform the conversion I followed a Stack Overflow post below which gave an idea how the conversions are taking place and colors are shown by browser

But when I checked with following examples:

<body bgcolor="a">
10,0,0
#0A 00 00


<body bgcolor="marker">
10,0,224
#0A 00 E0


<body bgcolor="kevineve">
224,14,224
#E00EE0

Same rule did not help me find the exact values for kevineve #E00EE0

What are the rules to convert a color name to its hex value ?

Color name can be any value: like below post or just any alphabet

Stack Overflow post: Why does HTML think “chucknorris” is a color?

Note: please note hex converted values of: a and kevineve

0

There are 0 best solutions below