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 #ff00ff | Schriftfarbe olive | |||||
Detail | : | Hintergrund #ff00ff | Detail | : | Schrift olive | |
Farbwert | : | #ff00ff | Farbe | : | olive | |
Farbe | : | fuchsia | Farbwert | : | #808000 | |
HTML | : | #ff00ff | HTML | : | olive | |
HTML (Wert) | : | #ff00ff | HTML (Wert) | : | #808000 | |
CSS | : | #ff00ff | CSS | : | olive | |
CSS (Wert) | : | #ff00ff | CSS (Wert) | : | #808000 | |
CSS (kürzest) | : | #f0f | CSS (kürzest) | : | #808000 | |
CSS (RGB) | : | rgb(255,0,255) | CSS (RGB) | : | rgb(128,128,0) | |
CSS (%RGB) | : | rgb(100%,0%,100%) | CSS (%RGB) | : | rgb(50%,50%,0%) |
Verlauf Hintergrundfarbwert #ff00ff nach Schriftfarbe olive | |||||||
#ff00ff | #ec12da | #da24b6 | #c83691 | #b6496d | #a45b48 | #926d24 | #808000 |
#ff00ff | #ec12da | #da24b6 | #c83691 | #b6496d | #a45b48 | #926d24 | #808000 |
Kombination von #ff00ff und olive | |||||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras vestibulum tristique erat, ac interdum justo cursus in. Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. Cras id velit ante. Aliquam dapibus, lorem sed bibendum consectetur, ligula enim dignissim ligula, a ultrices dolor augue ultrices magna. | Auf Hintergrund #ff00ff ist olive ungeeignet, weil der Helligkeitsunterschied nicht ausreichend ist Die Ähnlichkeit der Farben olive und #ff00ff beträgt 93.63%. Die Lesbarkeit dieser Farbkombination ergibt sich zu 6.37%. |
Hintergrundfarbwert #ff00ff | Schriftfarbe olive | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#ff00ff | #ff00ff | #ff00ff | #ff00ff | #808000 | #808000 | #808000 | #808000 |
#ff24ff | #ff24ff | #da00da | #da00da | #929224 | #929224 | #6d6d00 | #6d6d00 |
#ff48ff | #ff48ff | #b600b6 | #b600b6 | #a4a448 | #a4a448 | #5b5b00 | #5b5b00 |
#ff6dff | #ff6dff | #910091 | #910091 | #b6b66d | #b6b66d | #494900 | #494900 |
#ff91ff | #ff91ff | #6d006d | #6d006d | #c8c891 | #c8c891 | #363600 | #363600 |
#ffb6ff | #ffb6ff | #480048 | #480048 | #dadab6 | #dadab6 | #242400 | #242400 |
#ffdaff | #ffdaff | #240024 | #240024 | #ececda | #ececda | #121200 | #121200 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Bei diesem Beispiel ändern wir die Textfarbe von <ins> auf Farbe olive und lassen die Hintergrundfarbe unverändert. Die Schriftart setzen wir auf verdana und setzen die Schriftgröße auf 113%. Wir unterstreichen den Inhalt von <ins> mit Hilfe eines gestrichelten Rahmens mit 4 Pixel Dicke in Farbwert #ff00ff. Das geht in HTML kaum. Daher verwenden wir CSS zur Formatierung.
<style type="text/css"><!-- ins { font-family: verdana; border-bottom-style: dashed; border-bottom-width: 4px; font-size: 113%; color: olive; border-bottom-color: #ff00ff; } //--> </style>
Die Idee ist, unterschiedliche Formatierungen für Inhalt und Unterstreichung zu haben.
Möglichkeiten vom hier genutzten HTML-Befehl <ins>.
Hintergrund | Farbwert | Farbe | und | Schrift | Farbwert | Farbkombination |
---|---|---|---|---|---|---|
aqua | #00ffff | + | aqua | #00ffff | aqua / #ff00ff | |
black | #000000 | + | black | #000000 | black / #ff00ff | |
blue | #0000ff | + | blue | #0000ff | blue / #ff00ff | |
fuchsia | #ff00ff | + | fuchsia | #ff00ff | fuchsia / #ff00ff | |
gray | #808080 | + | gray | #808080 | gray / #ff00ff | |
grey | #808080 | + | grey | #808080 | grey / #ff00ff | |
green | #008000 | + | green | #008000 | green / #ff00ff | |
lime | #00ff00 | + | lime | #00ff00 | lime / #ff00ff | |
maroon | #800000 | + | maroon | #800000 | maroon / #ff00ff | |
navy | #000080 | + | navy | #000080 | navy / #ff00ff | |
olive | #808000 | + | olive | #808000 | olive / #ff00ff | |
purple | #800080 | + | purple | #800080 | purple / #ff00ff | |
red | #ff0000 | + | red | #ff0000 | red / #ff00ff | |
silver | #c0c0c0 | + | silver | #c0c0c0 | silver / #ff00ff | |
teal | #008080 | + | teal | #008080 | teal / #ff00ff | |
white | #ffffff | + | white | #ffffff | white / #ff00ff | |
yellow | #ffff00 | + | yellow | #ffff00 | yellow / #ff00ff |