Red
  • 18 May 2022
  • 1 Minute to read
  • Dark
    Light
  • PDF

Red

  • Dark
    Light
  • PDF

Returns an integer between 0 and 255 representing the color's red component.

Function signature

RED(color: String) => Number
Parameter Description
Color Color

Examples

Formula Return value
RED("#ff0") 255
RED("rgb(10, 20, 40)") 10
RED("hsl(80, 20%, 40%)") 109
RED("red") 255

Was this article helpful?

What's Next