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 #fffafa | Schriftfarbwert #fffaf0 | |||||
Detail | : | Hintergrund #fffafa | Detail | : | Schrift #fffaf0 | |
Farbwert | : | #fffafa | Farbwert | : | #fffaf0 | |
Farbe | : | snow | Farbe | : | floralwhite | |
HTML | : | #fffafa | HTML | : | #fffaf0 | |
HTML (Wert) | : | #fffafa | HTML (Wert) | : | #fffaf0 | |
CSS | : | #fffafa | CSS | : | #fffaf0 | |
CSS (Wert) | : | #fffafa | CSS (Wert) | : | #fffaf0 | |
CSS (kürzest) | : | #fffafa | CSS (kürzest) | : | #fffaf0 | |
CSS (RGB) | : | rgb(255,250,250) | CSS (RGB) | : | rgb(255,250,240) | |
CSS (%RGB) | : | rgb(100%,98%,98%) | CSS (%RGB) | : | rgb(100%,98%,94%) |
Verlauf Hintergrundfarbwert #fffafa nach Schriftfarbwert #fffaf0 | |||||||
#fffafa | #fffaf8 | #fffaf7 | #fffaf5 | #fffaf4 | #fffaf2 | #fffaf1 | #fffaf0 |
#fffafa | #fffaf8 | #fffaf7 | #fffaf5 | #fffaf4 | #fffaf2 | #fffaf1 | #fffaf0 |
Kombination von #fffafa und #fffaf0 | |||||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. Cras vestibulum tristique erat, ac interdum justo cursus in. Cras id velit ante. Aliquam dapibus, lorem sed bibendum consectetur, ligula enim dignissim ligula, a ultrices dolor augue ultrices magna. | Die Ähnlichkeit von #fffaf0 und #fffafa beträgt 95.21%. Die Lesbarkeit dieser Kombination ergibt sich zu 4.79%. #fffaf0 ist nicht als Schriftfarbe auf Hintergrund #fffafa geeignet, weil die Unterschiede in der Helligkeit und Farbe zu gering sind. |
Hintergrundfarbwert #fffafa | Schriftfarbwert #fffaf0 | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#fffafa | #fffafa | #fffafa | #fffafa | #fffaf0 | #fffaf0 | #fffaf0 | #fffaf0 |
#fffafa | #fffafa | #dad6d6 | #dad6d6 | #fffaf2 | #fffaf2 | #dad6cd | #dad6cd |
#fffbfb | #fffbfb | #b6b2b2 | #b6b2b2 | #fffbf4 | #fffbf4 | #b6b2ab | #b6b2ab |
#fffcfc | #fffcfc | #918e8e | #918e8e | #fffcf6 | #fffcf6 | #918e89 | #918e89 |
#fffcfc | #fffcfc | #6d6b6b | #6d6b6b | #fffcf8 | #fffcf8 | #6d6b66 | #6d6b66 |
#fffdfd | #fffdfd | #484747 | #484747 | #fffdfa | #fffdfa | #484744 | #484744 |
#fffefe | #fffefe | #242323 | #242323 | #fffefc | #fffefc | #242322 | #242322 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Hier ändern wir die Textfarbe von <button> auf Farbwert #fffaf0 und die Hintergrundfarbe von <button> auf Farbwert #fffafa. Die Schriftart ändern wir auf verdana. Als Schriftgröße entscheiden wir uns für 110%.
<style type="text/css"><!-- button { font-size: 110%; background-color: #fffafa; font-family: verdana; color: #fffaf0; } //--> </style>
Mehr zum Thema finden Sie in Formulare in HTML. Mehr zum hier gezeigten Tag <button>.