Unit | Description |
---|---|
color_name | A color name (red) |
rgb(x,x,x) | A rgb value (rgb(255,0,0)) |
rgb(y%, y%, y%) | A rgb percentage value (rgb(100%,0%,0%)) |
#rrggbb | A hex number (#ff0000). |
just my 2c worth. Hex codes can be shortened to a 3 digit number (yeah I know it's got letters in it - it's still a number) so #ff0000 can become #f00, black becomes #000 and white becomes #fff.
Posted by Rob at April 13, 2004 04:37 PMOne great way to get hexadecimal color codes i discovered is through Photoshop. On the lower right corner of the color selector chart is a little box that shows the color code for whatever color you have selected, which takes a lot of the guesswork out of it.
Posted by annika at April 13, 2004 05:07 PMI appreciate you input. Will three digit hex codes validate as proper CSS? It seems I've read somewhere that the validators require six digits???
With six digit hex codes, you get a broader range of colors.
Posted by Madfish Willie at April 13, 2004 05:12 PMthey should validate as they are valid hex equivalents to their 6 digit cousins.
And I meant it only as a short hand method of entering appropriate colors by all means use 6 digit codes for more complex hues.
Posted by Rob at April 13, 2004 07:41 PMI do the same thing as Annika, but with Paint Shop Pro. When doing a banner, I select a color to match, then read the color code given in hex. Works like a champ, and makes it easy to clone that particularly nice blue you found on someone else's site.
Posted by Ted at April 13, 2004 08:10 PMA neat color-picker can be found here (http://www.pixy.cz/apps/barvy/index-en.html).
Cool stuff soon as I figure out how to do something wid it.
Posted by Bravo Romeo Delta at April 13, 2004 10:08 PMThat's a pretty nice picker for a range of the same colors/hues that would look good together. Good find and thanks for that resource.
Posted by Madfish Willie at April 13, 2004 10:18 PMThe more I play with that last one, the more I like it. If you go look at it, make sure to move the little black dot on the inside of the color wheel, the slide bars outside the color wheel, and pick some different options from the drop-down menu box.
Posted by Madfish Willie at April 13, 2004 10:25 PManybody notice who that color picker is copyrighted to? Must be a sign! I love the schemes that soft contrast setting throws up ... xlnt find that man.
Posted by Rob at April 13, 2004 10:41 PMI use the pixy.cz color picker a lot, especially considering my tendency to change the look of things every other day.
ColorMatch Remix is another good one:
http://color.twysted.net/
"there are 3 ways to specify color codes in your HTML and CSS stylesheets:"
1. color_name A color name (red)
2. rgb(x,x,x) A rgb value (rgb(255,0,0))
3. rgb(y%, y%, y%) A rgb percentage value (rgb(100%,0%,0%))
4. #rrggbb A hex number (#ff0000).
And surely you do not need me to point it out further? There is no doubt that parrots will soon rule the world.