von Thomas Salvador.
Graustufen gehören zu den unbunten Farben und zeichnen sich dadurch aus, dass ihre Farbwerte für Rot, Grün und Blau gleich sind.
Graustufen enthalten natürlich alle 16 Graustufen und insbesondere die unbunten Grundfarben Schwarz und Weiß.
Um 256 Graustufen in HTML bzw. CSS zu erzeugen, wählen wir Farbwerte rr, gg und bb mit Werten von 0 bis 255 (d.h. hexadezimal 00 bis ff).
Hintergrundfarbwert #c0c0c0 | Schriftfarbe gray174 | |||||
Detail | : | Hintergrund #c0c0c0 | Detail | : | Schrift gray174 | |
Farbwert | : | #c0c0c0 | Farbe | : | gray174 | |
Farbe | : | silver | Farbwert | : | #aeaeae | |
HTML | : | #c0c0c0 | HTML | : | gray174 | |
HTML (Wert) | : | #c0c0c0 | HTML (Wert) | : | #aeaeae | |
CSS | : | #c0c0c0 | CSS | : | gray174 | |
CSS (Wert) | : | #c0c0c0 | CSS (Wert) | : | #aeaeae | |
CSS (kürzest) | : | #c0c0c0 | CSS (kürzest) | : | #aeaeae | |
CSS (RGB) | : | rgb(192,192,192) | CSS (RGB) | : | rgb(174,174,174) | |
CSS (%RGB) | : | rgb(75%,75%,75%) | CSS (%RGB) | : | rgb(68%,68%,68%) |
Verlauf Hintergrundfarbwert #c0c0c0 nach Schriftfarbe gray174 | |||||||
#c0c0c0 | #bdbdbd | #bababa | #b8b8b8 | #b5b5b5 | #b3b3b3 | #b0b0b0 | #aeaeae |
#c0c0c0 | #bdbdbd | #bababa | #b8b8b8 | #b5b5b5 | #b3b3b3 | #b0b0b0 | #aeaeae |
Kombination von #c0c0c0 und gray174 | |||||||
Cras id velit ante. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras vestibulum tristique erat, ac interdum justo cursus in. 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. | Die Ähnlichkeit von gray174 und #c0c0c0 beträgt 94.19%. Die Lesbarkeit dieser Farbkombination bewerte ich mit 5.81%. gray174 ist nicht als Schriftfarbe auf Hintergrund #c0c0c0 geeignet. Sowohl Helligkeit als auch die Farben sind sich zu ähnlich. |
Hintergrundfarbwert #c0c0c0 | Schriftfarbe gray174 | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#c0c0c0 | #c0c0c0 | #c0c0c0 | #c0c0c0 | #aeaeae | #aeaeae | #aeaeae | #aeaeae |
#c9c9c9 | #c9c9c9 | #a4a4a4 | #a4a4a4 | #b9b9b9 | #b9b9b9 | #959595 | #959595 |
#d2d2d2 | #d2d2d2 | #898989 | #898989 | #c5c5c5 | #c5c5c5 | #7c7c7c | #7c7c7c |
#dbdbdb | #dbdbdb | #6d6d6d | #6d6d6d | #d0d0d0 | #d0d0d0 | #636363 | #636363 |
#e4e4e4 | #e4e4e4 | #525252 | #525252 | #dcdcdc | #dcdcdc | #4a4a4a | #4a4a4a |
#ededed | #ededed | #363636 | #363636 | #e7e7e7 | #e7e7e7 | #313131 | #313131 |
#f6f6f6 | #f6f6f6 | #1b1b1b | #1b1b1b | #f3f3f3 | #f3f3f3 | #181818 | #181818 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Die Textfarbe soll sich von Farbwert #c0c0c0 auf Farbe gray174 ändern, wenn man mit der Maus darauf zeigt. Bereiten wir zunächst die Darstellung von <input> in Farbwert #c0c0c0 vor.
Wir setzen in diesem Beispiel bei <input> die Textfarbe auf Farbwert #c0c0c0. Zwar lassen wir die Hintergrundfarbe unverändert, setzen jedoch die Schriftart auf sans-serif:
<style type="text/css"><!-- input { font-family:sans-serif; color:#c0c0c0; } //--> </style>Jetzt stellen wir ein, dass bei Mausberührung die Textfarbe auf gray174 gesetzt wird.
<style type="text/css"><!-- input: hover { color: gray174; } //--> </style>
Mehr zu input lesen Sie in Formulare in HTML. Möglichkeiten des HTML-Tag input lesen Sie in der HTML Referenz unter <input>.