About the Colortone to RGB Converter
Canvas contexts, shader uniforms, chart libraries, LED strips and plotting APIs all want three numbers between 0 and 255. A tone name is no use to any of them. Enter the names you are working from and each one returns a plain rgb() triple alongside its swatch, ready to drop into a fill style, a config file or a JSON payload without a second conversion step.
Since the library sits in sRGB, the numbers you get are the ones a normal display expects. If your target is a wide gamut pipeline or a device working in linear light, remember that these channels are gamma encoded and will need the usual transfer function applied before any blending maths. Averaging two gamma encoded triples directly is the classic cause of muddy midpoints in a gradient.
Several names can be looked up at once by putting each on its own line, and the results keep that order so a list of brand tones can be pasted straight into a lookup table. Matching ignores case, punctuation and the gray or grey spelling. To go the other way from sampled pixels back to names, use RGB to Colortone, and Color Mixer blends two of these tones once you have their values.
How to use
- Paste tone names into the left pane, one on each line.
- Press Look up to read the rgb() triples.
- Paste a triple into your canvas call, chart config or API request.
- Use the swatches to double check you picked the tone you meant.
Common questions
- Which colour space are these channels in?
- They are ordinary sRGB values, the same space a browser and a standard monitor assume.
- Can I look up several names in one go?
- Yes, one name per line, and the triples come back in the order you entered them.
- Do I need to gamma correct before blending?
- For accurate mixing yes, because these channels are gamma encoded and averaging them directly darkens the midpoint.
- Is there an alpha channel in the output?
- No, tone names carry no opacity, so add your own alpha if the target needs one.