Edit online

Supported Colors

Along with the usual color values, Oxygen PDF Chemistry supports the following special values for all the color properties:

  • rgb - Used to specify red, green, and blue components (for example, color="rgb(255 , 0 , 153)").
  • rbga - Used for transparent colors by specifying each color channel and the transparency. For example, the following would result in the background color being magenta since the red color from the parent div element will be visible through the blue color of the <p> element:
    div{
      background-color:rgba(255,0,0,0.3)
    }
    p{
      background-color:rgba(0,0,255,0.3)
    }

For more information about color properties, see MDN Web Docs: Color.