Converts a color-string ("#rrggbb") into a RGB-color-string.


Syntax

colorStr2Hex(?string $color): string

  • $color - string
    The color-string to format in rgb-notation.
    If the string is already in rgb-notation (starting with "rgb") this $color is returned.


Example


{{ hublify.colorStr2RGB("#ff0080") }}          =>    rgb(255,0,128)