Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My question is as per title and more importantly, how to convert regular hex/rgb color format to the one that is used in gnome terminal color pallete (eg #26268B8BD2D2)?

share|improve this question
You can also use the simpler #ffffff for white, #000000 for black, etc. But see this for more detail. – user25656 Oct 11 '12 at 13:36
up vote 4 down vote accepted

GTK use 16-bit color components. so rgb is represented as rrrrggggbbbb.

The example which you took is equivalent to #26268B8BD2D2 -> #268BD2 -> RGB (38,139,210)

Hope this helps you.

share|improve this answer
Thank you! That gives me some ideas how to do the conversion – Flint Oct 11 '12 at 15:14
Glad that it helped you. – devav2 Oct 11 '12 at 15:18

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.