# Gimp.color_parse_css

    function color_parse_css(css: Array(String)): Gegl.Color {
        // Gjs wrapper for gimp_color_parse_css()
    }

Attempts to parse a string describing an sRGB color in CSS notation. This can be either a numerical representation (`rgb(255,0,0)` or `rgb(100%,0%,0%)`) or a hexadecimal notation as parsed by Gimp.color_parse_hex (`##ff0000`) or a color name as parsed by Gimp.color_parse_name (`red`).

Additionally the `rgba()`, `hsl()` and `hsla()` functions are supported too.

Since 2.2

css

  a string describing a color in CSS notation

Returns

  a newly allocated [class@Gegl.Color] if css was parsed successfully, null otherwise