von Thomas Salvador.
Farben werden in HTML entweder mit ihrem Namen oder mit ihrem Wert beschrieben.
HTML verfügt seit jeher über 17 Standard Farbnamen.
Sie entstehen dadurch, dass die 8 Grundfarben jeweils maximal und zu 50% enthalten sind.
Zu diesen 16 Farben kommt mit grey eine alternative Schreibweise für gray.
Hintergrundfarbwert #008000 | Schriftfarbe gray | |||||
Detail | : | Hintergrund #008000 | Detail | : | Schrift gray | |
Farbwert | : | #008000 | Farbe | : | gray | |
Farbe | : | green | Farbwert | : | #808080 | |
HTML | : | #008000 | HTML | : | gray | |
HTML (Wert) | : | #008000 | HTML (Wert) | : | #808080 | |
CSS | : | #008000 | CSS | : | gray | |
CSS (Wert) | : | #008000 | CSS (Wert) | : | #808080 | |
CSS (kürzest) | : | #008000 | CSS (kürzest) | : | #808080 | |
CSS (RGB) | : | rgb(0,128,0) | CSS (RGB) | : | rgb(128,128,128) | |
CSS (%RGB) | : | rgb(0%,50%,0%) | CSS (%RGB) | : | rgb(50%,50%,50%) |
Verlauf Hintergrundfarbwert #008000 nach Schriftfarbe gray | |||||||
#008000 | #128012 | #248024 | #368036 | #498049 | #5b805b | #6d806d | #808080 |
#008000 | #128012 | #248024 | #368036 | #498049 | #5b805b | #6d806d | #808080 |
Kombination von #008000 und gray | |||||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. Aliquam dapibus, lorem sed bibendum consectetur, ligula enim dignissim ligula, a ultrices dolor augue ultrices magna. Cras vestibulum tristique erat, ac interdum justo cursus in. Cras id velit ante. | gray ist nicht als Schriftfarbe auf Hintergrund #008000 geeignet, weil sich die Helligkeit und Farben zu ähnlich sind. Die Ähnlichkeit von gray und #008000 ergibt sich zu 93.81%. Die Lesbarkeit dieser Kombination ergibt sich zu 6.19%. |
Hintergrundfarbwert #008000 | Schriftfarbe gray | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#008000 | #008000 | #008000 | #008000 | #808080 | #808080 | #808080 | #808080 |
#249224 | #249224 | #006d00 | #006d00 | #929292 | #929292 | #6d6d6d | #6d6d6d |
#48a448 | #48a448 | #005b00 | #005b00 | #a4a4a4 | #a4a4a4 | #5b5b5b | #5b5b5b |
#6db66d | #6db66d | #004900 | #004900 | #b6b6b6 | #b6b6b6 | #494949 | #494949 |
#91c891 | #91c891 | #003600 | #003600 | #c8c8c8 | #c8c8c8 | #363636 | #363636 |
#b6dab6 | #b6dab6 | #002400 | #002400 | #dadada | #dadada | #242424 | #242424 |
#daecda | #daecda | #001200 | #001200 | #ececec | #ececec | #121212 | #121212 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Wir ändern in diesem Beispiel die Textfarbe von <thead> auf Farbe gray und die Hintergrundfarbe von <thead> auf Farbwert #008000. Die Schriftart setzen wir auf courier new und als Schriftgröße setzen wir 10pt.
<style type="text/css"><!-- thead { color:gray; font-size:10pt; background-color:#008000; font-family:courier new; } //--> </style>
Mehr zu thead lesen Sie in Tabellen in HTML. Mehr zum HTML-Tag <thead>.
Hintergrund | Farbwert | Farbe | und | Schrift | Farbwert | Farbkombination |
---|---|---|---|---|---|---|
aqua | #00ffff | + | aqua | #00ffff | aqua / #008000 | |
black | #000000 | + | black | #000000 | black / #008000 | |
blue | #0000ff | + | blue | #0000ff | blue / #008000 | |
fuchsia | #ff00ff | + | fuchsia | #ff00ff | fuchsia / #008000 | |
gray | #808080 | + | gray | #808080 | gray / #008000 | |
grey | #808080 | + | grey | #808080 | grey / #008000 | |
green | #008000 | + | green | #008000 | green / #008000 | |
lime | #00ff00 | + | lime | #00ff00 | lime / #008000 | |
maroon | #800000 | + | maroon | #800000 | maroon / #008000 | |
navy | #000080 | + | navy | #000080 | navy / #008000 | |
olive | #808000 | + | olive | #808000 | olive / #008000 | |
purple | #800080 | + | purple | #800080 | purple / #008000 | |
red | #ff0000 | + | red | #ff0000 | red / #008000 | |
silver | #c0c0c0 | + | silver | #c0c0c0 | silver / #008000 | |
teal | #008080 | + | teal | #008080 | teal / #008000 | |
white | #ffffff | + | white | #ffffff | white / #008000 | |
yellow | #ffff00 | + | yellow | #ffff00 | yellow / #008000 |