# selenium.webdriver.support.color

Classes

`Color`(red, green, blue[, alpha]) | Color conversion support class.

class selenium.webdriver.support.color.Color(red: Any, green: Any, blue: Any, alpha: Any = 1)

  Color conversion support class.

  Example:

      from selenium.webdriver.support.color import Color

      print(Color.from_string('#00ff33').rgba)
      print(Color.from_string('rgb(1, 255, 3)').hex)
      print(Color.from_string('blue').rgba)

  classmethod from_string(str_: str) → Color
  property rgb: str
  property rgba: str
  property hex: str