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 fuchsia | |||||
Detail | : | Hintergrund olive | Detail | : | Schrift fuchsia | |
Farbe | : | olive | Farbe | : | fuchsia | |
Farbwert | : | #808000 | Farbwert | : | #ff00ff | |
HTML | : | olive | HTML | : | fuchsia | |
HTML (Wert) | : | #808000 | HTML (Wert) | : | #ff00ff | |
CSS | : | olive | CSS | : | fuchsia | |
CSS (Wert) | : | #808000 | CSS (Wert) | : | #ff00ff | |
CSS (kürzest) | : | #808000 | CSS (kürzest) | : | #f0f | |
CSS (RGB) | : | rgb(128,128,0) | CSS (RGB) | : | rgb(255,0,255) | |
CSS (%RGB) | : | rgb(50%,50%,0%) | CSS (%RGB) | : | rgb(100%,0%,100%) |
Verlauf Hintergrundfarbe olive nach Schriftfarbe fuchsia | |||||||
#808000 | #926d24 | #a45b48 | #b6496d | #c83691 | #da24b6 | #ec12da | #ff00ff |
#808000 | #926d24 | #a45b48 | #b6496d | #c83691 | #da24b6 | #ec12da | #ff00ff |
Kombination von olive und fuchsia | |||||||
Cras vestibulum tristique erat, ac interdum justo cursus in. Aliquam dapibus, lorem sed bibendum consectetur, ligula enim dignissim ligula, a ultrices dolor augue ultrices magna. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. Cras id velit ante. | fuchsia eignet sich nicht als Schriftfarbe auf Hintergrund olive. Zwar ist der Farbunterschied gross genug, die Helligkeiten sind sich jedoch zu ähnlich. Die Ähnlichkeit der Farben fuchsia und olive beträgt 93.63%. Die Lesbarkeit dieser Kombination bewerte ich mit 6.37%. |
Hintergrundfarbe olive | Schriftfarbe fuchsia | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#808000 | #808000 | #808000 | #808000 | #ff00ff | #ff00ff | #ff00ff | #ff00ff |
#929224 | #929224 | #6d6d00 | #6d6d00 | #ff24ff | #ff24ff | #da00da | #da00da |
#a4a448 | #a4a448 | #5b5b00 | #5b5b00 | #ff48ff | #ff48ff | #b600b6 | #b600b6 |
#b6b66d | #b6b66d | #494900 | #494900 | #ff6dff | #ff6dff | #910091 | #910091 |
#c8c891 | #c8c891 | #363600 | #363600 | #ff91ff | #ff91ff | #6d006d | #6d006d |
#dadab6 | #dadab6 | #242400 | #242400 | #ffb6ff | #ffb6ff | #480048 | #480048 |
#ececda | #ececda | #121200 | #121200 | #ffdaff | #ffdaff | #240024 | #240024 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Hier ändern wir die Textfarbe von <blockquote> auf Farbe fuchsia. Die Schriftart ändern wir auf sans-serif. Die Schriftgröße setzen wir auf 84%. Wir unterstreichen den Inhalt von <blockquote> mit Hilfe eines gestrichelten Rahmens mit 5 Pixel Dicke in Farbe olive. Mit HTML geht das nicht. Wir nutzen deshalb CSS.
<style type="text/css"><!-- blockquote { font-family:sans-serif; font-size:84%; border-bottom:5px dashed olive; color:fuchsia; } //--> </style>
Die Idee ist, unterschiedliche Formatierungen für Inhalt und Unterstreichung zu haben.
Mehr zum Thema lesen Sie in Blockorientierte Elemente in HTML. Zur Beschreibung vom hier verwendeten HTML-Befehl <blockquote>.
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 |