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 #9acd32 | Schriftfarbe lightyellow | |||||
Detail | : | Hintergrund #9acd32 | Detail | : | Schrift lightyellow | |
Farbwert | : | #9acd32 | Farbe | : | lightyellow | |
Farbe | : | yellowgreen | Farbwert | : | #ffffe0 | |
HTML | : | #9acd32 | HTML | : | lightyellow | |
HTML (Wert) | : | #9acd32 | HTML (Wert) | : | #ffffe0 | |
CSS | : | #9acd32 | CSS | : | lightyellow | |
CSS (Wert) | : | #9acd32 | CSS (Wert) | : | #ffffe0 | |
CSS (kürzest) | : | #9acd32 | CSS (kürzest) | : | #ffffe0 | |
CSS (RGB) | : | rgb(154,205,50) | CSS (RGB) | : | rgb(255,255,224) | |
CSS (%RGB) | : | rgb(60%,80%,19%) | CSS (%RGB) | : | rgb(100%,100%,87%) |
Verlauf Hintergrundfarbwert #9acd32 nach Schriftfarbe lightyellow | |||||||
#9acd32 | #a8d44a | #b6db63 | #c5e27c | #d3e995 | #e2f0ae | #f0f7c7 | #ffffe0 |
#9acd32 | #a8d44a | #b6db63 | #c5e27c | #d3e995 | #e2f0ae | #f0f7c7 | #ffffe0 |
Kombination von #9acd32 und lightyellow | |||||||
Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. Aliquam dapibus, lorem sed bibendum consectetur, ligula enim dignissim ligula, a ultrices dolor augue ultrices magna. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras vestibulum tristique erat, ac interdum justo cursus in. Cras id velit ante. | lightyellow ist nicht als Schriftfarbe auf Hintergrund #9acd32 geeignet. Die Helligkeit und Farben sind sich zu ähnlich. Die Ähnlichkeit von lightyellow und #9acd32 beträgt 91.19%. Die Lesbarkeit dieser Farbkombination bewerte ich mit 8.81%. |
Hintergrundfarbwert #9acd32 | Schriftfarbe lightyellow | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#9acd32 | #9acd32 | #9acd32 | #9acd32 | #ffffe0 | #ffffe0 | #ffffe0 | #ffffe0 |
#a8d44f | #a8d44f | #84af2a | #84af2a | #ffffe4 | #ffffe4 | #dadac0 | #dadac0 |
#b6db6c | #b6db6c | #6e9223 | #6e9223 | #ffffe8 | #ffffe8 | #b6b6a0 | #b6b6a0 |
#c5e289 | #c5e289 | #58751c | #58751c | #ffffed | #ffffed | #919180 | #919180 |
#d3e9a7 | #d3e9a7 | #425715 | #425715 | #fffff1 | #fffff1 | #6d6d60 | #6d6d60 |
#e2f0c4 | #e2f0c4 | #2c3a0e | #2c3a0e | #fffff6 | #fffff6 | #484840 | #484840 |
#f0f7e1 | #f0f7e1 | #161d07 | #161d07 | #fffffa | #fffffa | #242420 | #242420 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Wir ändern für dieses Beispiel die Textfarbe von <blockquote> auf Farbe lightyellow. Die Schriftart ändern wir auf monospace. Die Schriftgröße ändern wir auf 9px. Wir unterstreichen den Inhalt von <blockquote> mit Hilfe eines gezahnten Rahmens mit 4 Punkte Dicke in Farbwert #9acd32. Mit HTML geht das nicht. Daher formatieren wir hier mit CSS.
<style type="text/css"><!-- blockquote { font-size:9px; border-bottom:4pt ridge #9acd32; font-family:monospace; color:lightyellow; } //--> </style>
Die Idee ist, unterschiedliche Formatierungen für Inhalt und Unterstreichung zu haben.
Weiteres zum Thema finden Sie in Blockorientierte Elemente in HTML. Einzelheiten vom HTML-Befehl blockquote erfahren Sie in der HTML Referenz unter <blockquote>.