von Thomas Salvador.
Farben werden in HTML entweder mit ihrem Namen oder mit ihrem Wert beschrieben.
Netscape führte seinerzeit die websicheren Farben ein. Neben diesen Farbwerten, die einem bestimmten Schema folgen, definierte man noch 120 Werte und ordnete ihnen Namen zu.
Hintergrundfarbwert #8b0000 | Schriftfarbe dimgray | |||||
Detail | : | Hintergrund #8b0000 | Detail | : | Schrift dimgray | |
Farbwert | : | #8b0000 | Farbe | : | dimgray | |
Farbe | : | darkred | Farbwert | : | #696969 | |
HTML | : | #8b0000 | HTML | : | dimgray | |
HTML (Wert) | : | #8b0000 | HTML (Wert) | : | #696969 | |
CSS | : | #8b0000 | CSS | : | dimgray | |
CSS (Wert) | : | #8b0000 | CSS (Wert) | : | #696969 | |
CSS (kürzest) | : | #8b0000 | CSS (kürzest) | : | #696969 | |
CSS (RGB) | : | rgb(139,0,0) | CSS (RGB) | : | rgb(105,105,105) | |
CSS (%RGB) | : | rgb(54%,0%,0%) | CSS (%RGB) | : | rgb(41%,41%,41%) |
Verlauf Hintergrundfarbwert #8b0000 nach Schriftfarbe dimgray | |||||||
#8b0000 | #860f0f | #811e1e | #7c2d2d | #773c3c | #724b4b | #6d5a5a | #696969 |
#8b0000 | #860f0f | #811e1e | #7c2d2d | #773c3c | #724b4b | #6d5a5a | #696969 |
Kombination von #8b0000 und dimgray | |||||||
Cras vestibulum tristique erat, ac interdum justo cursus in. Lorem ipsum dolor sit amet, consectetur adipiscing elit. 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. | Die Ähnlichkeit der Farben dimgray und #8b0000 ergibt sich zu 91.32%. Die Lesbarkeit dieser Farbkombination ergibt sich zu 8.68%. dimgray ist nicht als Schriftfarbe auf Hintergrund #8b0000 geeignet, da sich sowohl Helligkeit als auch die Farben zu ähnlich sind. |
Hintergrundfarbwert #8b0000 | Schriftfarbe dimgray | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#8b0000 | #8b0000 | #8b0000 | #8b0000 | #696969 | #696969 | #696969 | #696969 |
#9b2424 | #9b2424 | #770000 | #770000 | #7e7e7e | #7e7e7e | #5a5a5a | #5a5a5a |
#ac4848 | #ac4848 | #630000 | #630000 | #939393 | #939393 | #4b4b4b | #4b4b4b |
#bc6d6d | #bc6d6d | #4f0000 | #4f0000 | #a9a9a9 | #a9a9a9 | #3c3c3c | #3c3c3c |
#cd9191 | #cd9191 | #3b0000 | #3b0000 | #bebebe | #bebebe | #2d2d2d | #2d2d2d |
#ddb6b6 | #ddb6b6 | #270000 | #270000 | #d4d4d4 | #d4d4d4 | #1e1e1e | #1e1e1e |
#eedada | #eedada | #130000 | #130000 | #e9e9e9 | #e9e9e9 | #0f0f0f | #0f0f0f |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Hier ändern wir die Textfarbe von <strong> auf Farbe dimgray und die Hintergrundfarbe von <strong> auf Farbwert #8b0000. Als Schriftart wählen wir arial und ändern die Schriftgröße auf 12px.
<style type="text/css"><!-- strong { color: dimgray; font-family: arial; background-color: #8b0000; font-size: 12px; } //--> </style>
Mehr zum Thema erfahren Sie in Text in HTML. Die Beschreibung vom hier gezeigten HTML-Befehl strong erfahren Sie in der HTML Referenz unter <strong>.