|
| Topics this page:
|
|
(Useless) assigned Color Name: | Red | Green | Blue |
| Hex 6: | Hue | Sat. | Lum. |
| |||
|
|
| |||||||||||
|
This is similar to bgColor module source for igoogle homepages. |
|
| Color Name | r,g,b | Hex 6 | Hex 3 | Sample |
|---|---|---|---|---|
| *Black (CSS1) 黝 | 0,0,0 | #000000 | #000 |   |
| Dark Slate Gray | 49,79,79 | #2f4f4f | - |   |
| none | 51,51,51 | #333333 | #333 |   |
| none | 102,102,102 | #666666 | #666 |   |
| Dim Gray | 105,105,105 | #696969 | - |   |
| Slate Gray | 112,138,144 | #708090 | - |   |
| Light Slate Gray | 119,136,153 | #778899 | - |   |
| "Normal" *Gray (CSS1) | 128,128,128 | #808080 | - |   |
| none | 153,153,153 | #999999 | #999 |   |
| *Silver (CSS1) | 192,192,192 | #C0C0C0 | - |   |
| Light Gray | 211,211,211 | #d3d3d3 | - |   |
| Gainsboro | 220,220,220 | #dcdcdc | - |   |
| *White (CSS1) | 256,256,256 | #FFFFFF | #FFF |   |
White () light contains the maximum value of all three colors.
"Normal" gray () has equal amounts of all three primary colors at 50%, represented as decimal 128 or hex 80.
Each 8-bit hex digit can have one of 16 values (from 0 through 9,A,B,C,D,E,F).
So divide a decimal number by 16 for the first hex digit.
Divide the remainder by 16 for the second hex digit.
Alternately, multiply the first hex digit by 255 to convert it to decimal.
RGB coloring is specified in Cascading Style Sheet coding one of several ways:
3-digit hex shortcuts are automatically converted by browsers doubling each digit such that #678 = #667788. Although more compact, they cannot be used to identify colors with non-repeating color values such as #ACD257.
Since the maximum value of each hex "FF" is equivalant to decimal value 256, the RGB color space has 256*256*256 or 16,777,216 possible colors, while most humans can distinguish a gamut of about 10 million different colors.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| % | Decimal | Hex | | | |
|---|---|---|---|---|---|
| 100% | 255 | xFF | *Red #FF0000 | *Lime #00FF00 | *Blue #0000FF |
| 75% | 192 | xC0 | #C00000 | #00C000 | #0000C0 |
| 69% | 176 | xB0 | #B00000 | #00B000 | #0000B0 |
| 60% | 153 | x99 | #990000 | #009900 | #000099 |
| 50% | 128 | x80 | *Maroon #800000 | *Green #008000 | *Navy #000080 |
| 25% | 64 | x40 | #400000 | #004000 | #000040 |
| 20% | 51 | x33 | #330000 | #003300 | #000033 |
However, the W3C CSS1 standard has assigned only 16 names:
The CSS1 color name "green" is not as saturated as the CSS1 color name "lime".
"Orange" was added in CSS2.1.
Do not use these 147
proprietary
color names introduced with
X11, then adopted by only Internet Explorer/Opera, then lately by
SVG and
CSS3.
Select a color number and curson down/up to set different background colors.
Click a gray button to convert.
|
> From GREEN to BLUE > | |
|
G
t
R
|
|
Generated by Javascript (instead of static HTML as in
this page of 4096 these Hex 3
colors).
This 6x6x6 table of color codes on the left displays the 216 "browser safe" color pallette for use on older (v4) internet browsers running on older computers which were only able to support 256 different colors.
This palette was first published by
Lynda
However, browsers on wireless devices (PDAs and cell phones) are again starting at version 4!
Click on the color number to obtain a list of complementary colors
from the amazing
Netspade site by Jason Davies.
Kelly Martin's Colorspace Explorer (Lab colorspace, version 3.04) and Cooperative Color Naming System.
A good rule of thumb is to take your background colour and compute
Y = 0.3R + 0.59G + 0.11B.
If Y exceeds 0.5, use black foreground text, otherwise use white."
Color Scheme Calculator calculates triad, complementary, analogous, and split complementary colours,
plus saturation and lightness variations. Also converts the given colour to RGB and HSL.
The advantage of using HSL is that when you keep the brightness and saturation level constant,
you will select colors that go well with each other.
Bob Power's example.
Freeware Eltima Absolute client program doesn't display HSL in percentage, but it's nonetheless a useful
color scheme generator, color history builder, color scheme management system, and screen color grabber.
Formulas to convert between color space schemes are defined in the book Fundamentals of Interactive Computer Graphics by Foley and van Dam (c 1982, Addison-Wesley).
|
| Red | Green | Blue | Bounces | Color Name | Absorbs |
|---|---|---|---|---|---|
| 00 | FF | FF | green and blue | Cyan/*Aqua | red |
| FF | 00 | FF | red and blue | Magenta/*Fuchia | green |
| FF | FF | 00 | red and green | *Yellow 黄 | blue |
Cyan, magenta, and yellow — abbreviated as "CMY" — are also called "secondary" colors.
Less saturated complementary colors:
| Red | Green | Blue | Bounces | Color Name | Absorbs |
|---|---|---|---|---|---|
| 00 | 80 | 80 | green and blue | *Teal | red |
| 80 | 00 | 80 | red and blue | *Purple 紫 | green |
| 80 | 80 | 00 | red and green | *Olive | blue |
To obtain complement to a specific color, merely calculating the remainder from 255 or FF doesn't work
for all colors. It's more reliable to first convert the number to the number of HSL Hue degrees and add or subtract 180 degrees.
These 24 colors are "evenly spaced" — using FF/00, 80/80 (50%/50%), 40/C0 (75%/25%) —
and arranged in two rows that are opposite each other.
For example, red on the first line is opposite cyan on the second line.
|
|
*red FF0000 Hue 0 |
coral FF4000 Hue 15 |
orange FF8000 Hue 30 |
tangerine FFC000 Hue 45 |
*yellow FFFF00 Hue 60 |
peridot C0FF00 Hue 75 |
80FF00 Hue 90 |
40FF00 Hue 105 |
*lime 00FF00 Hue 120 |
00FF40 Hue 135 |
00FF80 Hue 150 |
mint 00FFC0 Hue 165 |
|
*aqua/ cyan 00FFFF Hue 180 |
sky 00C0FF Hue 195 |
azure 0080FF Hue 210 |
0040FF Hue 225 |
*blue 0000FF Hue 240 |
royal 4000FF Hue 255 |
violet 8000FF Hue 270 |
plum C000FF Hue 285 |
*fuchia/ Magenta FF00FF Hue 300 |
berry FF00C0 Hue 315 |
pink FF0080 Hue 330 |
cherry FF0040 Hue 345 |
|
The left-to-right arrangement of these 24 colors reflect the sequence of optical light wavelengths along the electro-magnetic spectrum range from red (longer 780 nanometers) to violet (shorter 380 nm). The Microsoft Windows system (and MSPaint) converts RGB to HSL incorrectly.
|
|
|
|
"84" in the first parameter above is for "Hue", expressed as the number of
degrees of a circle, a
non-linear deformation of the RGB color space:
green at 120° blue at 240° Arranging the range of colors in a circle makes opposite colors intuitively easy to identify. "60" in the second parameter is the saturation percent, a measure of color "purity" — from 100% brightness down through pastels to 0% for gray. This is selected by the vertical position of the mouse in the GUI. "44" in the third parameter is the Luminosity / Lightness percent (100% is white, 0% is black, 50% is for "normal"/"pure" color). HSL is "symmetrical" to lightness and darkness, Unlike the HSV system. Macromedia Studio, Paint Shop Pro, Inkscape (starting from version 0.42) are all supporting HSL, as are photospectrometers which measure colors. |
|
|
|
|
|
Victor Engel gives you the color codes and sample coding for where your mouse points on his honeycomb color map: |
|
|
WellStyled.com has the most features.
|
|
|
|
|
|
|
| Type of link | HTML <body> Attribute |
JavascriptProperty |
CSS Class { Property |
Object Model Property |
Java method |
|---|---|---|---|---|---|
| Background image | BACKGROUND= | . | BACKGROUND-IMAGE: url('x.gif'); | backgroundImage | . |
| Background color | BGCOLOR | bgColor | BACKGROUND-COLOR | backgroundColor | setBackground |
| Foreground color (of text) | FGCOLOR | fgColor | color: #dda0dd color: rgb(0,0,255) |
. | setColor |
| The color of unvisited link text | link= | linkColor | a:link { | ||
| The (temporary) color of active link text | Alink= | alinkColor | a:active { | ||
| The color of visited link text | Vlink= | vlinkColor | a:visited { | ||
| text where mouse hovers | - | - | a:hover { | ||
| Border color (also Style and Width) | . | . | border-color border-top-color border-left-color border-right-color |
borderColor borderTopColor borderBottomColor borderLeftColor borderRightColor |
The Java coding to change the color to one of the standard colors using a method from the JDE package java.awt.Color:
Lloyd Dalton shows you Javascript coding for Color select control.
|
|
Related:
| Your first name: Your family name: Your location (city, country): Your Email address: |
Top of Page Thank you! | |||