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, einem bestimmten Schema folgenden, Farbwerten, definierte man noch 120 Werte und ordnete ihnen Namen zu. Zusammen mit den 17 Standard-HTML-Farben, die ebenfalls Namen haben, ergeben sich so 137 HTML Farbnamen.
Hintergrundfarbe lightcyan | Schriftfarbe maroon | |||||
Detail | : | Hintergrund lightcyan | Detail | : | Schrift maroon | |
Farbe | : | lightcyan | Farbe | : | maroon | |
Farbwert | : | #e0ffff | Farbwert | : | #800000 | |
HTML | : | lightcyan | HTML | : | maroon | |
HTML (Wert) | : | #e0ffff | HTML (Wert) | : | #800000 | |
CSS | : | lightcyan | CSS | : | maroon | |
CSS (Wert) | : | #e0ffff | CSS (Wert) | : | #800000 | |
CSS (kürzest) | : | #e0ffff | CSS (kürzest) | : | #800000 | |
CSS (RGB) | : | rgb(224,255,255) | CSS (RGB) | : | rgb(128,0,0) | |
CSS (%RGB) | : | rgb(87%,100%,100%) | CSS (%RGB) | : | rgb(50%,0%,0%) |
Verlauf Hintergrundfarbe lightcyan nach Schriftfarbe maroon | |||||||
#e0ffff | #d2dada | #c4b6b6 | #b69191 | #a96d6d | #9b4848 | #8d2424 | #800000 |
#e0ffff | #d2dada | #c4b6b6 | #b69191 | #a96d6d | #9b4848 | #8d2424 | #800000 |
Kombination von lightcyan und maroon | |||||||
Aliquam dapibus, lorem sed bibendum consectetur, ligula enim dignissim ligula, a ultrices dolor augue ultrices magna. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. Cras id velit ante. Cras vestibulum tristique erat, ac interdum justo cursus in. | Die Ähnlichkeit von maroon und lightcyan ergibt sich zu 50.55%. Die Lesbarkeit dieser Farbkombination bewerte ich mit 49.45%. maroon eignet sich als Schriftfarbe auf Hintergrund lightcyan. Die Unterschiede in Helligkeit und Farbe sind ok. |
Hintergrundfarbe lightcyan | Schriftfarbe maroon | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#e0ffff | #e0ffff | #e0ffff | #e0ffff | #800000 | #800000 | #800000 | #800000 |
#e4ffff | #e4ffff | #c0dada | #c0dada | #922424 | #922424 | #6d0000 | #6d0000 |
#e8ffff | #e8ffff | #a0b6b6 | #a0b6b6 | #a44848 | #a44848 | #5b0000 | #5b0000 |
#edffff | #edffff | #809191 | #809191 | #b66d6d | #b66d6d | #490000 | #490000 |
#f1ffff | #f1ffff | #606d6d | #606d6d | #c89191 | #c89191 | #360000 | #360000 |
#f6ffff | #f6ffff | #404848 | #404848 | #dab6b6 | #dab6b6 | #240000 | #240000 |
#faffff | #faffff | #202424 | #202424 | #ecdada | #ecdada | #120000 | #120000 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Die Textfarbe soll sich von Farbe lightcyan auf Farbe maroon ändern, wenn man mit der Maus auf <button> zeigt. Wir bereiten zunächst eine Formatierung von <button> in Farbe lightcyan vor.
Wir ändern zum Beispiel bei <button> die Textfarbe auf Farbe lightcyan:
<style type="text/css"><!-- button { color: lightcyan; } //--> </style>Jetzt stellen wir ein, dass bei Mausberührung die Textfarbe auf maroon geändert wird.
<style type="text/css"><!-- button: hover { color: maroon; } //--> </style>
Weiteres zu button können Sie in Formulare in HTML nachlesen. Beschreibung des hier gezeigten HTML-Befehl <button>.