def rgb_to_html(r, g=None, b=None):
if type(r) in [list,tuple]:<EOL><INDENT>r, g, b = r<EOL><DEDENT>return '<STR_LIT>' % tuple((min(round(v*<NUM_LIT:255>), <NUM_LIT:255>) for v in (r, g, b)))<EOL>
Convert the color from (r, g, b) to #RRGGBB.

    Parameters:
      :r:
        The Red component value [0...1]
      :g:
        The Green component value [0...1]
      :b:
        The Blue component value [0...1]

    Returns:
      A CSS string representation of this color (#RRGGBB).

    >>> rgb_to_html(1, 0.5, 0)
    '#ff8000'