/hex Command

The /hex command provides tools for hexadecimal conversions.

Available Subcommands

/hex to-rgb

Converts a hexadecimal color code to RGB values.

Usage

/hex to-rgb color: <color code>

Options

OptionDescriptionRequiredPlatform
colorThe hexadecimal color code (e.g., #FF5733, FF5733 or F53)YesDiscord (parameter), Slack (directly after action)

Example

/hex to-rgb color: #FF5733

Result: RGB(255, 87, 51)

/hex to-hsl

Converts a hexadecimal color code to HSL values.

Usage

/hex to-hsl color: <color code>

Options

OptionDescriptionRequiredPlatform
colorThe hexadecimal color code to convertYesDiscord (parameter), Slack (directly after action)

Example

/hex to-hsl color: #FF5733

Result: HSL(14, 100%, 60%)

/hex to-string

Converts a hexadecimal string to text.

Usage

/hex to-string input: <hex string>

Options

OptionDescriptionRequiredPlatform
inputThe hexadecimal string to convertYesDiscord (parameter), Slack (directly after action)

Example

/hex to-string input: 48656C6C6F

Result: Hello

/hex to-decimal

Converts a hexadecimal value to decimal.

Usage

/hex to-decimal input: <hex value>

Options

OptionDescriptionRequiredPlatform
inputThe hexadecimal value to convertYesDiscord (parameter), Slack (directly after action)

Example

/hex to-decimal input: FF

Result: 255

/hex from-string

Converts text to hexadecimal values.

Usage

/hex from-string input: <text>

Options

OptionDescriptionRequiredPlatform
inputThe text to convert to hexadecimalYesDiscord (parameter), Slack (directly after action)

Example

/hex from-string input: Hello

Result: 48656C6C6F

/hex from-decimal

Converts a decimal number to hexadecimal value.

Usage

/hex from-decimal input: <number>

Options

OptionDescriptionRequiredPlatform
inputThe decimal number to convertYesDiscord (parameter), Slack (directly after action)

Example

/hex from-decimal input: 255

Result: FF

Platform-Specific Implementation

Discord Implementation

  • Commands use Discord’s named parameter system (e.g., color:, input:)
  • Responses appear as embedded messages with color-coding
  • For color conversions, the embedded message uses the actual color for visual feedback

Slack Implementation

  • Commands use a simpler format without named parameters
  • Input is provided directly after the action (e.g., /hex to-rgb #FF5733)
  • Responses are shown with formatted blocks displaying the result and related information
  • Color conversions include a colored attachment for visual preview
  • Supports quoted arguments for inputs containing spaces

Use Cases

  • Convert color codes for different CSS formats
  • Encode/decode binary data in hexadecimal
  • Convert between decimal and hexadecimal number systems
  • Analyze color codes for web design

Notes

  • Hexadecimal values are not case-sensitive
  • For color codes, the # prefix is optional
  • When converting to decimal, the “0x” prefix is optional