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 #dda0dd | Schriftfarbwert #ffdab9 | |||||
Detail | : | Hintergrund #dda0dd | Detail | : | Schrift #ffdab9 | |
Farbwert | : | #dda0dd | Farbwert | : | #ffdab9 | |
Farbe | : | plum | Farbe | : | peachpuff | |
HTML | : | #dda0dd | HTML | : | #ffdab9 | |
HTML (Wert) | : | #dda0dd | HTML (Wert) | : | #ffdab9 | |
CSS | : | #dda0dd | CSS | : | #ffdab9 | |
CSS (Wert) | : | #dda0dd | CSS (Wert) | : | #ffdab9 | |
CSS (kürzest) | : | #dda0dd | CSS (kürzest) | : | #ffdab9 | |
CSS (RGB) | : | rgb(221,160,221) | CSS (RGB) | : | rgb(255,218,185) | |
CSS (%RGB) | : | rgb(86%,62%,86%) | CSS (%RGB) | : | rgb(100%,85%,72%) |
Verlauf Hintergrundfarbwert #dda0dd nach Schriftfarbwert #ffdab9 | |||||||
#dda0dd | #e1a8d7 | #e6b0d2 | #ebb8cd | #f0c1c8 | #f5c9c3 | #fad1be | #ffdab9 |
#dda0dd | #e1a8d7 | #e6b0d2 | #ebb8cd | #f0c1c8 | #f5c9c3 | #fad1be | #ffdab9 |
Kombination von #dda0dd und #ffdab9 | |||||||
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. Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. | #ffdab9 ist nicht als Schriftfarbe auf Hintergrund #dda0dd geeignet, da sich sowohl Helligkeit als auch die Farben zu ähnlich sind. Die Ähnlichkeit von #ffdab9 und #dda0dd beträgt 92.50%. Die Lesbarkeit dieser Kombination liegt damit bei 7.50%. |
Hintergrundfarbwert #dda0dd | Schriftfarbwert #ffdab9 | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#dda0dd | #dda0dd | #dda0dd | #dda0dd | #ffdab9 | #ffdab9 | #ffdab9 | #ffdab9 |
#e1ade1 | #e1ade1 | #bd89bd | #bd89bd | #ffdfc3 | #ffdfc3 | #daba9e | #daba9e |
#e6bbe6 | #e6bbe6 | #9d729d | #9d729d | #ffe4cd | #ffe4cd | #b69b84 | #b69b84 |
#ebc8eb | #ebc8eb | #7e5b7e | #7e5b7e | #ffe9d7 | #ffe9d7 | #917c69 | #917c69 |
#f0d6f0 | #f0d6f0 | #5e445e | #5e445e | #ffefe1 | #ffefe1 | #6d5d4f | #6d5d4f |
#f5e3f5 | #f5e3f5 | #3f2d3f | #3f2d3f | #fff4eb | #fff4eb | #483e34 | #483e34 |
#faf1fa | #faf1fa | #1f161f | #1f161f | #fff9f5 | #fff9f5 | #241f1a | #241f1a |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Hier ändern wir die Textfarbe von <caption> auf Farbwert #ffdab9. Die Schriftart setzen wir auf monospace. Die Schriftgröße setzen wir auf 13px. Wir unterstreichen den Inhalt von <caption> mit Hilfe eines doppelten Rahmens mit 1 Pixel Dicke in Farbwert #dda0dd. In HTML geht dies kaum. Deshalb verwenden wir hier CSS.
<style type="text/css"><!-- caption { color: #ffdab9; font-size: 13px; font-family: monospace; border-bottom: 1px double #dda0dd; } //--> </style>
Die Idee ist, unterschiedliche Formatierungen für Inhalt und Unterstreichung zu haben.
Weiteres zum Thema caption finden Sie in Tabellen in HTML. Weiteres zum HTML-Befehl caption erfahren Sie in der HTML Referenz unter <caption>.
Hier ändern wir die Textfarbe von <address> auf Farbwert #ffdab9 und die Hintergrundfarbe von <address> auf Farbwert #dda0dd. Als Schriftart setzen wir sans-serif. Als Schriftgröße setzen wir 83%.
<style type="text/css"><!-- address { color:#ffdab9; background-color:#dda0dd; font-size:83%; font-family:sans-serif; } //--> </style>
Weiteres zu address erfahren Sie in Blockorientierte Elemente in HTML. Mehr zum HTML-Tag <address>.