Parse colour code

Converts a colour code in a standard format to other standard formats and displays the colour itself.

Input: TextResult: HTML with a sandboxed preview

Text input

Examples

Compare representations of this colour. Only the listed channel values are checked; inspect the swatch and alpha separately.

CSS red

Input

#ff0000

Expected checks

Case-insensitive
Contains "255"
Contains "0"
Contains "0"
CSS blue

Input

#0000ff

Expected checks

Case-insensitive
Contains "0"
Contains "0"
Contains "255"
A neutral grey

Input

#808080

Expected checks

Case-insensitive
Contains "128"
Contains "128"
Contains "128"
A half-transparent green

Input

rgba(0,255,0,0.5)

Expected checks

Case-insensitive
Contains "0"
Contains "255"
Contains "0"
A cyan HSL control

Input

hsl(180,100%,50%)

Expected checks

Case-insensitive
Contains "0"
Contains "255"
Contains "255"

Example inputs#d9edf7 rgba(217,237,247,1) hsla(200,65%,91%,1) cmyk(0.12, 0.04, 0.00, 0.03)

Format reference: Parse colour code background and specification

Related tools

Browse utils tools