<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>13 Oct 2016 15:14:00 Z</lastBuildDate><pubDate>12 Oct 2016 20:37:00 Z</pubDate><description>Hi,&#13;
&#13;
I'm looking for a function to find a readable color for text on a given background color.&#13;
Like white text on black background or black text on a yellow surface.&#13;
&#13;
I found one in one of the LST's and it use some calculation to change the HUE and SATURATION of a given color to determine the new readable one. Works OK but the effect is getting the same color lighter or darker.&#13;
&#13;
I'm looking for something which returns let's say black for a all white, lightgray, yellow, lightred, etc backgrounds. Preferably not using some table of predefined colors, but for ANY given color.</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/59944-wd20-readable-color-for-certain-background/read.awp</link><title>WD20 - readable color for certain background</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/59944-wd20-readable-color-for-certain-background-59958/read.awp</comments><pubDate>13 Oct 2016 15:14:00 Z</pubDate><description>Thanks Alexandre,&#13;
&#13;
tried it right away and it is better indeed :spos:</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/59944-wd20-readable-color-for-certain-background-59958/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/59944-wd20-readable-color-for-certain-background-59958/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/59944-wd20-readable-color-for-certain-background/read.awp">WD20 - readable color for certain background</source><title>Re: WD20 - readable color for certain background</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/59944-wd20-readable-color-for-certain-background-59956/read.awp</comments><pubDate>13 Oct 2016 14:26:00 Z</pubDate><description>Hi Arie,&#13;
&#13;
We used the following algorithm for many years with success (getting this old code back from the GDS; it should be g…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/59944-wd20-readable-color-for-certain-background-59956/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/59944-wd20-readable-color-for-certain-background-59956/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/59944-wd20-readable-color-for-certain-background/read.awp">WD20 - readable color for certain background</source><title>Re: WD20 - readable color for certain background</title></item></channel></rss>
