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).
Hintergrundfarbe gray86 | Schriftfarbwert #666666 | |||||
Detail | : | Hintergrund gray86 | Detail | : | Schrift #666666 | |
Farbe | : | gray86 | Farbwert | : | #666666 | |
Farbwert | : | #565656 | Farbe | : | gray102 | |
HTML | : | gray86 | HTML | : | #666666 | |
HTML (Wert) | : | #565656 | HTML (Wert) | : | #666666 | |
CSS | : | gray86 | CSS | : | #666666 | |
CSS (Wert) | : | #565656 | CSS (Wert) | : | #666666 | |
CSS (kürzest) | : | #565656 | CSS (kürzest) | : | #666 | |
CSS (RGB) | : | rgb(86,86,86) | CSS (RGB) | : | rgb(102,102,102) | |
CSS (%RGB) | : | rgb(33%,33%,33%) | CSS (%RGB) | : | rgb(40%,40%,40%) |
Verlauf Hintergrundfarbe gray86 nach Schriftfarbwert #666666 | |||||||
#565656 | #585858 | #5a5a5a | #5c5c5c | #5f5f5f | #616161 | #636363 | #666666 |
#565656 | #585858 | #5a5a5a | #5c5c5c | #5f5f5f | #616161 | #636363 | #666666 |
Kombination von gray86 und #666666 | |||||||
Cras vestibulum tristique erat, ac interdum justo cursus in. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras id velit ante. 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. | Auf Hintergrund gray86 ist #666666 ungeeignet. Sowohl Helligkeit als auch die Farben sind zu ähnlich. Die Ähnlichkeit von #666666 und gray86 ergibt sich zu 93.91%. Die Lesbarkeit dieser Farbkombination ergibt sich zu 6.09%. |
Hintergrundfarbe gray86 | Schriftfarbwert #666666 | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#565656 | #565656 | #565656 | #565656 | #666666 | #666666 | #666666 | #666666 |
#6e6e6e | #6e6e6e | #494949 | #494949 | #7b7b7b | #7b7b7b | #575757 | #575757 |
#868686 | #868686 | #3d3d3d | #3d3d3d | #919191 | #919191 | #484848 | #484848 |
#9e9e9e | #9e9e9e | #313131 | #313131 | #a7a7a7 | #a7a7a7 | #3a3a3a | #3a3a3a |
#b6b6b6 | #b6b6b6 | #242424 | #242424 | #bdbdbd | #bdbdbd | #2b2b2b | #2b2b2b |
#cecece | #cecece | #181818 | #181818 | #d3d3d3 | #d3d3d3 | #1d1d1d | #1d1d1d |
#e6e6e6 | #e6e6e6 | #0c0c0c | #0c0c0c | #e9e9e9 | #e9e9e9 | #0e0e0e | #0e0e0e |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Hier ändern wir die Textfarbe von <center> auf Farbwert #666666 und die Hintergrundfarbe von <center> auf Farbe gray86. Als Schriftart wählen wir arial und als Schriftgröße wählen wir 9px.
<style type="text/css"><!-- center { background-color:gray86; font-family:arial; color:#666666; font-size:9px; } //--> </style>
Weiteres zu center können Sie in Grundlegende Gestaltungselemente in HTML nachsehen. Weiteres zum HTML-Tag center erfahren Sie in der HTML Referenz unter <center>.
Hier umranden wir <form> mit einem 2 Pixel dicken, doppelten Rahmen in Farbwert #666666 . Die Hintergrundfarbe für <form> färben wir mit Farbe gray86. Das ist mit HTML kaum möglich. Wir nutzen deshalb CSS.
<style type="text/css"><!-- form { border-color: #666666; border-style: double; background-color: gray86; border-width: 2px; } //--> </style>
Mehr zu form können Sie in Formulare in HTML nachlesen. Weiteres zum HTML-Befehl <form>.