Commands
RGB
Documentation for the /rgb command for RGB color conversions
/rgb
Command
The /rgb
command provides tools for RGB (Red, Green, Blue) color conversions.
Available Subcommands
/rgb to-hex
Converts RGB color values to a hexadecimal color code.
Usage
Options
Option | Description | Required | Platform |
---|---|---|---|
values | The RGB values (e.g., ‘255 87 51’ or ‘255,87,51’) | Yes | Discord (parameter), Slack (directly after action) |
Example
Result: #FF5733
/rgb to-hsl
Converts RGB color values to HSL (Hue, Saturation, Lightness).
Usage
Options
Option | Description | Required | Platform |
---|---|---|---|
values | The RGB values (e.g., ‘255 87 51’ or ‘255,87,51’) | Yes | Discord (parameter), Slack (directly after action) |
Example
Result: HSL(14, 100%, 60%)
/rgb to-cmyk
Converts RGB color values to CMYK (Cyan, Magenta, Yellow, Key/Black).
Usage
Options
Option | Description | Required | Platform |
---|---|---|---|
values | The RGB values (e.g., ‘255 87 51’ or ‘255,87,51’) | Yes | Discord (parameter), Slack (directly after action) |
Example
Result: CMYK(0%, 66%, 80%, 0%)
/rgb to-hsv
Converts RGB color values to HSV (Hue, Saturation, Value).
Usage
Options
Option | Description | Required | Platform |
---|---|---|---|
values | The RGB values (e.g., ‘255 87 51’ or ‘255,87,51’) | Yes | Discord (parameter), Slack (directly after action) |
Example
Result: HSV(14, 80%, 100%)
Platform-Specific Implementation
Discord Implementation
- Commands use Discord’s named parameter system (e.g.,
values:
) - Responses appear as embedded messages with color-coding
- For color conversions, the embedded message uses the actual color for visual feedback
- Each conversion includes detailed component values in labeled fields
Slack Implementation
- Commands use a simpler format without named parameters
- Input values are provided directly after the action (e.g.,
/rgb to-hex 255 87 51
) - Responses are shown with formatted blocks displaying the result and related information
- Color conversions include a colored attachment for visual preview
- Supports both space-separated and comma-separated RGB values
- Supports quoted arguments for complex inputs
Usage Notes
- RGB values should be provided as three integers between 0 and 255, separated by spaces or commas
- Values represent the intensity of Red, Green, and Blue components respectively
- Maximum value is 255 (full intensity) and minimum is 0 (no intensity)
Use Cases
- Convert RGB colors for use in different design applications
- Transform RGB values to other color models for specific design needs
- Generate color codes for web development and graphic design
- Create color palettes with consistent color formats
Notes
- Color values displayed in Discord include a preview of the color
- Each conversion includes detailed component values for further use