Docs Colours Classes HEX

HEX

Syntax

new HEX(colour)

Overview

The HEX class represents a hexadecimal notation for RGBA components (red, green, blue[, alpha]) written as hexadecimal numbers.

Parameters

colour

A string containing a hex colour or a colour class.

Properties

HEX.value

Returns the hex colour in CSS notation.