Skip to content

Get-RandomColorHex

SYNOPSIS

Gets a random color in hex format.

SYNTAX

__AllParameterSets

Text Only
Get-RandomColorHex

ALIASES

This cmdlet has the following aliases,

  • None

DESCRIPTION

This cmdlet generates a random color in hex format. The color is represented as a six-digit hexadecimal string, prefixed with a hash symbol (#). This can be useful for creating random colors for diagrams or other visual elements.

EXAMPLES

Example 1

PowerShell
Get-RandomColorHex

#52CE3A

This command generates and returns a random color in hex format.

PARAMETERS

INPUTS

OUTPUTS

System.Object

A string representing a random color in hex format (e.g., #A1B2C3).

NOTES

This cmdlet is useful for generating random colors for diagrams or other visual elements.

Diagrammer.Core