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 #800080 | Schriftfarbe olive | |||||
Detail | : | Hintergrund #800080 | Detail | : | Schrift olive | |
Farbwert | : | #800080 | Farbe | : | olive | |
Farbe | : | purple | Farbwert | : | #808000 | |
HTML | : | #800080 | HTML | : | olive | |
HTML (Wert) | : | #800080 | HTML (Wert) | : | #808000 | |
CSS | : | #800080 | CSS | : | olive | |
CSS (Wert) | : | #800080 | CSS (Wert) | : | #808000 | |
CSS (kürzest) | : | #800080 | CSS (kürzest) | : | #808000 | |
CSS (RGB) | : | rgb(128,0,128) | CSS (RGB) | : | rgb(128,128,0) | |
CSS (%RGB) | : | rgb(50%,0%,50%) | CSS (%RGB) | : | rgb(50%,50%,0%) |
Verlauf Hintergrundfarbwert #800080 nach Schriftfarbe olive | |||||||
#800080 | #80126d | #80245b | #803649 | #804936 | #805b24 | #806d12 | #808000 |
#800080 | #80126d | #80245b | #803649 | #804936 | #805b24 | #806d12 | #808000 |
Kombination von #800080 und olive | |||||||
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. | olive ist nicht als Schriftfarbe auf Hintergrund #800080 geeignet, da sich sowohl Helligkeit als auch die Farben zu ähnlich sind. Die Ähnlichkeit von olive und #800080 beträgt 89.31%. Die Lesbarkeit dieser Kombination von Farben ergibt sich zu 10.69%. |
Hintergrundfarbwert #800080 | Schriftfarbe olive | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#800080 | #800080 | #800080 | #800080 | #808000 | #808000 | #808000 | #808000 |
#922492 | #922492 | #6d006d | #6d006d | #929224 | #929224 | #6d6d00 | #6d6d00 |
#a448a4 | #a448a4 | #5b005b | #5b005b | #a4a448 | #a4a448 | #5b5b00 | #5b5b00 |
#b66db6 | #b66db6 | #490049 | #490049 | #b6b66d | #b6b66d | #494900 | #494900 |
#c891c8 | #c891c8 | #360036 | #360036 | #c8c891 | #c8c891 | #363600 | #363600 |
#dab6da | #dab6da | #240024 | #240024 | #dadab6 | #dadab6 | #242400 | #242400 |
#ecdaec | #ecdaec | #120012 | #120012 | #ececda | #ececda | #121200 | #121200 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
In diesem Beispiel umranden wir <frame> mit einem 4 Punkte dicken, gestrichelten Rahmen in Farbe olive . Den Hintergrund von <frame> setzen wir entsprechend auf Farbwert #800080. Das geht in HTML kaum. Wir verwenden deshalb CSS.
<style type="text/css"><!-- frame { border:4pt dashed olive; background-color:#800080; } //--> </style>
Mehr zum HTML-Tag <frame>.
Wir ändern für dieses Beispiel die Textfarbe von <s> auf Farbe olive. Die Schriftart setzen wir auf courier new. Die Schriftgröße setzen wir auf 91%. Wir unterstreichen den Inhalt von <s> mit Hilfe eines gezahnten Rahmens mit 4 Pixel Dicke in Farbwert #800080. Dies ist mit HTML kaum möglich. Deshalb nutzen wir dafür CSS.
<style type="text/css"><!-- s { color:olive; font-family:courier new; font-size:91%; border-bottom:4px ridge #800080; } //--> </style>
Die Idee ist, unterschiedliche Formatierungen für Inhalt und Unterstreichung zu haben.
Mehr zum Thema s finden Sie in Text in HTML. Weiteres zum HTML-Befehl <s>.
Hintergrund | Farbwert | Farbe | und | Schrift | Farbwert | Farbkombination |
---|---|---|---|---|---|---|
aqua | #00ffff | + | aqua | #00ffff | aqua / #800080 | |
black | #000000 | + | black | #000000 | black / #800080 | |
blue | #0000ff | + | blue | #0000ff | blue / #800080 | |
fuchsia | #ff00ff | + | fuchsia | #ff00ff | fuchsia / #800080 | |
gray | #808080 | + | gray | #808080 | gray / #800080 | |
grey | #808080 | + | grey | #808080 | grey / #800080 | |
green | #008000 | + | green | #008000 | green / #800080 | |
lime | #00ff00 | + | lime | #00ff00 | lime / #800080 | |
maroon | #800000 | + | maroon | #800000 | maroon / #800080 | |
navy | #000080 | + | navy | #000080 | navy / #800080 | |
olive | #808000 | + | olive | #808000 | olive / #800080 | |
purple | #800080 | + | purple | #800080 | purple / #800080 | |
red | #ff0000 | + | red | #ff0000 | red / #800080 | |
silver | #c0c0c0 | + | silver | #c0c0c0 | silver / #800080 | |
teal | #008080 | + | teal | #008080 | teal / #800080 | |
white | #ffffff | + | white | #ffffff | white / #800080 | |
yellow | #ffff00 | + | yellow | #ffff00 | yellow / #800080 |