Colortone to RGB
Convert color names to RGB values.
Type a Colortone (color name) value or pick a color – the result updates instantly.
Preview
Colortone to RGB Converter
Turn any CSS color name into red, green, and blue channel values. Start typing cornflower and pick CornflowerBlue from the suggestions to get rgb(100, 149, 237). The result table also lists RGBA, HEX, HSL, HSV, and CMYK with one-click copy buttons.
When you need numbers instead of a name
CSS understands color: Crimson, but many other environments do not:
- Canvas and WebGL shaders take channels as numbers (often divided by 255).
- Python libraries like Pillow and Matplotlib accept
(220, 20, 60)tuples. - Arduino and LED strips set each channel with a 0–255 PWM value.
- Unity and Godot color constructors expect separate components.
Looking up the name once and pasting the tuple saves a round trip through a design tool.
Reference values
| Name | RGB | Shader (0–1) |
|---|---|---|
| Crimson | 220, 20, 60 | 0.863, 0.078, 0.235 |
| CornflowerBlue | 100, 149, 237 | 0.392, 0.584, 0.929 |
| MediumSeaGreen | 60, 179, 113 | 0.235, 0.702, 0.443 |
| RebeccaPurple | 102, 51, 153 | 0.4, 0.2, 0.6 |
For the shader column, divide each channel by 255: 149 / 255 = 0.584.
Watch out for the gray family
The gray names are a trap when you pick by word alone. Ordered from dark to light, the RGB values run DimGray (105), Gray (128), DarkGray (169), Silver (192), LightGray (211). Measured with the CIEDE2000 color-difference formula, DarkGray and Gray are a full ΔE 13.5 apart – a clearly visible step – whereas LightGray and Silver are only ΔE 4.69 apart and easy to confuse on screen. CIEDE2000 rates differences the way the eye does, so these scores reflect what you actually see on screen. If you need an evenly spaced gray ramp, pick RGB values yourself rather than relying on the names.
To go straight to a hex code instead, use Colortone to HEX; to name a set of RGB numbers, try RGB to Colortone.
Frequently Asked Questions
What is the RGB value of RebeccaPurple?
RebeccaPurple is rgb(102, 51, 153), or #663399 in HEX. It is the only CSS color name added after CSS3, introduced in 2014.
Why is DarkGray lighter than Gray?
DarkGray keeps its original X11 value rgb(169, 169, 169), while Gray uses the HTML 4 value rgb(128, 128, 128). The two lists were merged without fixing the naming, so DarkGray ended up lighter.
Can I type names with spaces or the grey spelling?
Yes. 'light grey', 'LightGrey', and 'lightgray' all resolve to LightGray, rgb(211, 211, 211). Capitalization and spaces are ignored.
Can I get the value with transparency?
Named colors are fully opaque, so the RGBA row of the result table shows an alpha of 1. Change the last number to add transparency, for example rgba(70, 130, 180, 0.5).