Skip to main content

RGB

RGB() is used in expressions to set or evaluate the color properties of a chart object, where the color is defined by a red component r, a green component g, and a blue component bwith values between 0 and 255.

Syntax:  

RGB (r, g, b)

Return data type: dual

Arguments:  

  • r, g, b: Red, green, and blue component values. A color component of 0 corresponds to no contribution and one of 255 to full contribution.
Information noteAll arguments must be expressions that resolve to integers in the range 0 to 255.

If interpreting the numeric component and formatting it in hexadecimal notation, the values of the color components are easier to see.For example, light green has the number 4 278 255 360, which in hexadecimal notation is FF00FF00.The first two positions ‘FF’ (255) denote the alpha factor.In the functions RGB and HSL, this is always ‘FF’ (opaque).The next two positions ‘00’ denote the amount of red, the next two positions ‘FF’ denote the amount of green and the final two positions ‘00’ denote the amount of blue.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!

Join the Analytics Modernization Program

Remove banner from view

Modernize without compromising your valuable QlikView apps with the Analytics Modernization Program. Click here for more information or reach out: ampquestions@qlik.com