Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
1  
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
add comment

1 Answer 1

up vote 2 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
add comment

Your Answer

 
discard

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.