How to simplify the Hexadecimal code # ff6a00 [closed]

-2

I need to make this hexadecimal code # ff6a00, is there any rule? Do you have any formula?

    
asked by anonymous 23.02.2017 / 18:42

2 answers

1

One way to simplify would be to replace the hexadecimal color code with the name of the color, in this table has the names and hexadecimal codes of each color.

Example: background-color: # ADFF2F has the same effect as background-color: GreenYellow

Then just look for the color closest to the quoted hexadecimal code and replace it with the name of the color in question.

    
23.02.2017 / 18:49
2

TL; DR : There is no way to simplify.

Long version :

  • In long hexadecimal notation this is not possible since it is the original format used in the question ( #RRGGBB ).
  • In short hexadecimal notation ( #RGB ) this is not possible, since the green component format ( #6a ) can not be simplified without loss of color resolution. Close versions: #f60 or #f70 .
  • In LESS you can set a short alias for the color.

Example LESS:

@o: #ff6a00; 
#title { color: @o; }

Still, the compiled version will display the full content:

#title { color: #ff6a00; }
    
23.02.2017 / 19:33