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 #cfcfcf | Schriftfarbwert #575757 | |||||
Detail | : | Hintergrund #cfcfcf | Detail | : | Schrift #575757 | |
Farbwert | : | #cfcfcf | Farbwert | : | #575757 | |
Farbe | : | gray207 | Farbe | : | gray87 | |
HTML | : | #cfcfcf | HTML | : | #575757 | |
HTML (Wert) | : | #cfcfcf | HTML (Wert) | : | #575757 | |
CSS | : | #cfcfcf | CSS | : | #575757 | |
CSS (Wert) | : | #cfcfcf | CSS (Wert) | : | #575757 | |
CSS (kürzest) | : | #cfcfcf | CSS (kürzest) | : | #575757 | |
CSS (RGB) | : | rgb(207,207,207) | CSS (RGB) | : | rgb(87,87,87) | |
CSS (%RGB) | : | rgb(81%,81%,81%) | CSS (%RGB) | : | rgb(34%,34%,34%) |
Verlauf Hintergrundfarbwert #cfcfcf nach Schriftfarbwert #575757 | |||||||
#cfcfcf | #bdbdbd | #acacac | #9b9b9b | #8a8a8a | #797979 | #686868 | #575757 |
#cfcfcf | #bdbdbd | #acacac | #9b9b9b | #8a8a8a | #797979 | #686868 | #575757 |
Kombination von #cfcfcf und #575757 | |||||||
Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. Cras vestibulum tristique erat, ac interdum justo cursus in. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras id velit ante. Aliquam dapibus, lorem sed bibendum consectetur, ligula enim dignissim ligula, a ultrices dolor augue ultrices magna. | Die Ähnlichkeit von #575757 und #cfcfcf beträgt 77.91%. Die Lesbarkeit dieser Farbkombination ergibt sich zu 22.09%. #575757 eignet sich nicht als Schriftfarbe auf Hintergrund #cfcfcf. Weder der Helligkeitsunterschied noch der Farbunterschied sind geeignet. |
Hintergrundfarbwert #cfcfcf | Schriftfarbwert #575757 | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#cfcfcf | #cfcfcf | #cfcfcf | #cfcfcf | #575757 | #575757 | #575757 | #575757 |
#d5d5d5 | #d5d5d5 | #b1b1b1 | #b1b1b1 | #6f6f6f | #6f6f6f | #4a4a4a | #4a4a4a |
#dcdcdc | #dcdcdc | #939393 | #939393 | #878787 | #878787 | #3e3e3e | #3e3e3e |
#e3e3e3 | #e3e3e3 | #767676 | #767676 | #9f9f9f | #9f9f9f | #313131 | #313131 |
#eaeaea | #eaeaea | #585858 | #585858 | #b7b7b7 | #b7b7b7 | #252525 | #252525 |
#f1f1f1 | #f1f1f1 | #3b3b3b | #3b3b3b | #cfcfcf | #cfcfcf | #181818 | #181818 |
#f8f8f8 | #f8f8f8 | #1d1d1d | #1d1d1d | #e7e7e7 | #e7e7e7 | #0c0c0c | #0c0c0c |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Die Rahmenfarbe soll sich von Farbwert #cfcfcf auf Farbwert #575757 ändern, wenn man mit der Maus darauf zeigt. Wir bereiten zunächst eine Formatierung von <label> in Farbwert #cfcfcf vor.
In diesem Beispiel umranden wir <label> mit einem 1 Pixel dicken, gezahnten Rahmen in Farbwert #cfcfcf.
<style type="text/css"><!-- label { border-width:1px; border-style:ridge; border-color:#cfcfcf; } //--> </style>Jetzt fordern wir, dass bei Berührung mit der Maus die Rahmenfarbe auf #575757 gesetzt wird.
<style type="text/css"><!-- label:hover { border-color:#575757; } //--> </style>
Weiteres zu label lesen Sie in Formulare in HTML. Möglichkeiten des Tag <label>.