ToColor
ToColor[color, form] converts color to form if form is GrayLevel, RGBColor or CMYKColor. Otherwise form[color] is evaluated and the result is expected to be a valid color directive.
Please visit the official Wolfram Language Reference for more details and examples on core symbols.