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.
Hintergrundfarbe olive | Schriftfarbe purple | |||||
Detail | : | Hintergrund olive | Detail | : | Schrift purple | |
Farbe | : | olive | Farbe | : | purple | |
Farbwert | : | #808000 | Farbwert | : | #800080 | |
HTML | : | olive | HTML | : | purple | |
HTML (Wert) | : | #808000 | HTML (Wert) | : | #800080 | |
CSS | : | olive | CSS | : | purple | |
CSS (Wert) | : | #808000 | CSS (Wert) | : | #800080 | |
CSS (kürzest) | : | #808000 | CSS (kürzest) | : | #800080 | |
CSS (RGB) | : | rgb(128,128,0) | CSS (RGB) | : | rgb(128,0,128) | |
CSS (%RGB) | : | rgb(50%,50%,0%) | CSS (%RGB) | : | rgb(50%,0%,50%) |
Verlauf Hintergrundfarbe olive nach Schriftfarbe purple | |||||||
#808000 | #806d12 | #805b24 | #804936 | #803649 | #80245b | #80126d | #800080 |
#808000 | #806d12 | #805b24 | #804936 | #803649 | #80245b | #80126d | #800080 |
Kombination von olive und purple | |||||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras id velit ante. 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. Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. | purple ist nicht als Schriftfarbe auf Hintergrund olive geeignet. Die Unterschiede in der Helligkeit und Farbe sind zu gering. Die Ähnlichkeit der Farben purple und olive ergibt sich zu 89.31%. Die Lesbarkeit dieser Kombination von Farben ergibt sich zu 10.69%. |
Hintergrundfarbe olive | Schriftfarbe purple | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#808000 | #808000 | #808000 | #808000 | #800080 | #800080 | #800080 | #800080 |
#929224 | #929224 | #6d6d00 | #6d6d00 | #922492 | #922492 | #6d006d | #6d006d |
#a4a448 | #a4a448 | #5b5b00 | #5b5b00 | #a448a4 | #a448a4 | #5b005b | #5b005b |
#b6b66d | #b6b66d | #494900 | #494900 | #b66db6 | #b66db6 | #490049 | #490049 |
#c8c891 | #c8c891 | #363600 | #363600 | #c891c8 | #c891c8 | #360036 | #360036 |
#dadab6 | #dadab6 | #242400 | #242400 | #dab6da | #dab6da | #240024 | #240024 |
#ececda | #ececda | #121200 | #121200 | #ecdaec | #ecdaec | #120012 | #120012 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Einen Hyperlink setzen Sie mit Befehl <a>. Er kann farblich gestaltet und hervorgehoben werden.
In diesem Beispiel umranden wir <a> mit einem gefurchten, 3 Pixel dicken Rahmen in Farbe purple . Die Hintergrundfarbe für <a> setzen wir auf Farbe olive. Das ist mit HTML so kaum möglich. Wir nutzen deshalb CSS zur Formatierung.
<style type="text/css"><!-- a { border-style:groove; border-color:purple; background-color:olive; border-width:3px; } //--> </style>
Mehr zu a können Sie in Verweise und Protokolle in HTML nachlesen. Die Beschreibung vom HTML-Befehl a finden Sie in der HTML Referenz unter <a>.
Hier ändern wir die Textfarbe von <p> auf Farbe purple und die Hintergrundfarbe von <p> auf Farbe olive. Die Schriftart setzen wir auf courier new. Als Schriftgröße setzen wir 121%.
<style type="text/css"><!-- p { color:purple; font-size:121%; font-family:courier new; background-color:olive; } //--> </style>
Mehr zum Thema p lesen Sie in Grundlegende Gestaltungselemente in HTML. Weiteres zum hier gezeigten HTML-Befehl <p>.
Hintergrund | Farbwert | Farbe | und | Schrift | Farbwert | Farbkombination |
---|---|---|---|---|---|---|
aqua | #00ffff | + | aqua | #00ffff | aqua / olive | |
black | #000000 | + | black | #000000 | black / olive | |
blue | #0000ff | + | blue | #0000ff | blue / olive | |
fuchsia | #ff00ff | + | fuchsia | #ff00ff | fuchsia / olive | |
gray | #808080 | + | gray | #808080 | gray / olive | |
grey | #808080 | + | grey | #808080 | grey / olive | |
green | #008000 | + | green | #008000 | green / olive | |
lime | #00ff00 | + | lime | #00ff00 | lime / olive | |
maroon | #800000 | + | maroon | #800000 | maroon / olive | |
navy | #000080 | + | navy | #000080 | navy / olive | |
olive | #808000 | + | olive | #808000 | olive / olive | |
purple | #800080 | + | purple | #800080 | purple / olive | |
red | #ff0000 | + | red | #ff0000 | red / olive | |
silver | #c0c0c0 | + | silver | #c0c0c0 | silver / olive | |
teal | #008080 | + | teal | #008080 | teal / olive | |
white | #ffffff | + | white | #ffffff | white / olive | |
yellow | #ffff00 | + | yellow | #ffff00 | yellow / olive |