@classmethod<EOL><INDENT>def _convert_to_color(cls, color_spec):<DEDENT>
from openpyxl.styles import Color<EOL>if isinstance(color_spec, str):<EOL><INDENT>return Color(color_spec)<EOL><DEDENT>else:<EOL><INDENT>return Color(**color_spec)<EOL><DEDENT>
Convert ``color_spec`` to an openpyxl v2 Color object
Parameters
----------
color_spec : str, dict
    A 32-bit ARGB hex string, or a dict with zero or more of the
    following keys.
        'rgb'
        'indexed'
        'auto'
        'theme'
        'tint'
        'index'
        'type'
Returns
-------
color : openpyxl.styles.Color