von Thomas Salvador.
Farben werden in HTML entweder mit ihrem Namen oder mit ihrem Wert beschrieben.
HTML verfügt seit jeher über 17 Standard Farbnamen.
Sie entstehen dadurch, dass die 8 Grundfarben jeweils maximal und zu 50% enthalten sind.
Zu diesen 16 Farben kommt mit grey eine alternative Schreibweise für gray.
Hintergrundfarbe fuchsia | Schriftfarbe yellow | |||||
Detail | : | Hintergrund fuchsia | Detail | : | Schrift yellow | |
Farbe | : | fuchsia | Farbe | : | yellow | |
Farbwert | : | #ff00ff | Farbwert | : | #ffff00 | |
HTML | : | fuchsia | HTML | : | yellow | |
HTML (Wert) | : | #ff00ff | HTML (Wert) | : | #ffff00 | |
CSS | : | fuchsia | CSS | : | yellow | |
CSS (Wert) | : | #ff00ff | CSS (Wert) | : | #ffff00 | |
CSS (kürzest) | : | #f0f | CSS (kürzest) | : | #ff0 | |
CSS (RGB) | : | rgb(255,0,255) | CSS (RGB) | : | rgb(255,255,0) | |
CSS (%RGB) | : | rgb(100%,0%,100%) | CSS (%RGB) | : | rgb(100%,100%,0%) |
Verlauf Hintergrundfarbe fuchsia nach Schriftfarbe yellow | |||||||
#ff00ff | #ff24da | #ff48b6 | #ff6d91 | #ff916d | #ffb648 | #ffda24 | #ffff00 |
#ff00ff | #ff24da | #ff48b6 | #ff6d91 | #ff916d | #ffb648 | #ffda24 | #ffff00 |
Kombination von fuchsia und yellow | |||||||
Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. 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. Cras vestibulum tristique erat, ac interdum justo cursus in. | Die Ähnlichkeit der Farben yellow und fuchsia beträgt 86.09%. Die Lesbarkeit dieser Farbkombination ergibt sich zu 13.91%. yellow eignet sich nicht als Schriftfarbe auf Hintergrund fuchsia, da der Helligkeitsunterschied zu gering ist |
Hintergrundfarbe fuchsia | Schriftfarbe yellow | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#ff00ff | #ff00ff | #ff00ff | #ff00ff | #ffff00 | #ffff00 | #ffff00 | #ffff00 |
#ff24ff | #ff24ff | #da00da | #da00da | #ffff24 | #ffff24 | #dada00 | #dada00 |
#ff48ff | #ff48ff | #b600b6 | #b600b6 | #ffff48 | #ffff48 | #b6b600 | #b6b600 |
#ff6dff | #ff6dff | #910091 | #910091 | #ffff6d | #ffff6d | #919100 | #919100 |
#ff91ff | #ff91ff | #6d006d | #6d006d | #ffff91 | #ffff91 | #6d6d00 | #6d6d00 |
#ffb6ff | #ffb6ff | #480048 | #480048 | #ffffb6 | #ffffb6 | #484800 | #484800 |
#ffdaff | #ffdaff | #240024 | #240024 | #ffffda | #ffffda | #242400 | #242400 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Die Hintergrundfarbe soll sich von Farbe fuchsia auf Farbe yellow ändern, wenn man mit der Maus auf <cite> zeigt. Wir bereiten zunächst die Darstellung von <cite> in Farbe fuchsia vor.
Z.B. legen wir die Hintergrundfarbe von <cite> auf Farbe fuchsia fest. Die Größe der Schrift erhöhen wir auf 118%.
<style type="text/css"><!-- cite { font-size: 118%; background-color: fuchsia; } //--> </style>Nun stellen wir ein, dass bei Hover die Hintergrundfarbe auf yellow geändert wird.
<style type="text/css"><!-- cite: hover { background-color: yellow; } //--> </style>
Der hier verwendete Befehl cite ist in der HTML Referenz bei <cite> ausführlich beschrieben.
Hintergrund | Farbwert | Farbe | und | Schrift | Farbwert | Farbkombination |
---|---|---|---|---|---|---|
aqua | #00ffff | + | aqua | #00ffff | aqua / fuchsia | |
black | #000000 | + | black | #000000 | black / fuchsia | |
blue | #0000ff | + | blue | #0000ff | blue / fuchsia | |
fuchsia | #ff00ff | + | fuchsia | #ff00ff | fuchsia / fuchsia | |
gray | #808080 | + | gray | #808080 | gray / fuchsia | |
grey | #808080 | + | grey | #808080 | grey / fuchsia | |
green | #008000 | + | green | #008000 | green / fuchsia | |
lime | #00ff00 | + | lime | #00ff00 | lime / fuchsia | |
maroon | #800000 | + | maroon | #800000 | maroon / fuchsia | |
navy | #000080 | + | navy | #000080 | navy / fuchsia | |
olive | #808000 | + | olive | #808000 | olive / fuchsia | |
purple | #800080 | + | purple | #800080 | purple / fuchsia | |
red | #ff0000 | + | red | #ff0000 | red / fuchsia | |
silver | #c0c0c0 | + | silver | #c0c0c0 | silver / fuchsia | |
teal | #008080 | + | teal | #008080 | teal / fuchsia | |
white | #ffffff | + | white | #ffffff | white / fuchsia | |
yellow | #ffff00 | + | yellow | #ffff00 | yellow / fuchsia |