DEV Community

Discussion on: Write a function that outputs a pleasant text color hex given a background color hex

Collapse
 
jrohatiner profile image
Judith • Edited

examples.achickandaclick.org/color...

Caveat: this was already done :P and I hope that the rgb(0,0,0) text being only one color (non-color: black is really no color) is considered pleasant :) That being said; the input of a hex generates a color in the box with black text showing the rgb of the hex color. I used js, jquery, html and css :) Namaste!

ps there are two functions