Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Colours

0 views
Skip to first unread message

Roy Bailey

unread,
Sep 6, 1998, 3:00:00 AM9/6/98
to
I have a feeling that this has been discussed before - if so, forgive
me.

Is it possible to correlate HTML colour codes (such as #99FF66) with the
Red/Blue/Green and Hue/Sat/Lum controls in the Windows Colour Selection
Dialogue box?
--
Roy Bailey
Great Shefford
HUNGERFORD, Berks.


Tony Morgan

unread,
Sep 6, 1998, 3:00:00 AM9/6/98
to
In article <XR81lKA0...@westberks.demon.co.uk>, Roy Bailey
<rba...@nospam.demon.co.uk> writes

>Is it possible to correlate HTML colour codes (such as #99FF66) with the
>Red/Blue/Green and Hue/Sat/Lum controls in the Windows Colour Selection
>Dialogue box?

The only place I've seen anything like this is in Picture Publisher V7
onwards.
--
Tony Morgan
Atomor Web
Web by Design

Tony Morgan

unread,
Sep 6, 1998, 3:00:00 AM9/6/98
to
In article <905101172.22222.0...@news.demon.co.uk>,
Alisdair Wren <alis...@nospam.demon.co.uk> writes
>You can easily convert windows R,G,B colour codes into #RRGGBB
>hexadecimal codes using a myriad of utilities available from the web,
>but it's just as easy with Windows Calculator, which can do conversions
>into hexadecimal. The colour you gave above would be a yellowish green
>(because of the dominance of the 'green', but high 'red' content), and
>in the same way you will eventually find that you can easily compose
>colours directly in hexadecimal without needing to see them, find their
>Windows code, and convert them to hex.

I'm unsure whether this is what Roy is asking Alisdair.

Your are simply explaining hex-dec conversion. Hue/saturation/luminance
is AFAIK a different animal.

Paul Allen has explained this (at length!) some time ago - and may come
in here. But if I can give a practical example:

RGB (hex) #FF8111 equates with RGB (Dec) 255 129 17

also with:

Hue 27, Saturation 100, Luminance 100.

also with:

Cyan 0, Magenta 126, Yellow 238, Gamma (K) 0

As I mentioned in a post in this thread, Picture Publisher 7 give these
in its colour picker (all at the same time). You can also determine them
with the ubiquitous magic wand in PP7.

E.D. Wivens

unread,
Sep 6, 1998, 3:00:00 AM9/6/98
to

>Is it possible to correlate HTML colour codes (such as #99FF66) with the
>Red/Blue/Green and Hue/Sat/Lum controls in the Windows Colour Selection
>Dialogue box?

Paint Shop Pro 5 has a colour wheel dialog that shows the RGB, HSL and
HTML values for any selected colour.

See most PC magazine cover CDs or <URL:http://www.jasc.com/>.

--
E.D. Wivens
Katzphur <URL:http://www.largepre.demon.co.uk/katzphur/>


Martin Tom Brown

unread,
Sep 7, 1998, 3:00:00 AM9/7/98
to
On Sunday, in article
<905113172.21640.0...@news.demon.co.uk>
news...@largeprefer.co.uk "E.D. Wivens" wrote:

> In article <XR81lKA0...@westberks.demon.co.uk>, Roy Bailey
> <rba...@nospam.demon.co.uk> writes:
>
> >Is it possible to correlate HTML colour codes (such as #99FF66) with the
> >Red/Blue/Green and Hue/Sat/Lum controls in the Windows Colour Selection
> >Dialogue box?
>
> Paint Shop Pro 5 has a colour wheel dialog that shows the RGB, HSL and
> HTML values for any selected colour.
>
> See most PC magazine cover CDs or <URL:http://www.jasc.com/>.

Worth pointing out that choosing exotic 24bit colours like #97FB61
will produce irritating chicken pox dithering on restricted palettes.
As a rule of thumb multiples of #33 are reliable on most platforms.
(which systems does this fail on ?)

Regards,
--
Martin Brown <mar...@nezumi.demon.co.uk> __ CIS: 71651,470
Scientific Software Consultancy /^,,)__/


Tony Morgan

unread,
Sep 7, 1998, 3:00:00 AM9/7/98
to
In article <905164214.9948.0...@news.demon.co.uk>,
Alisdair Wren <alis...@nospam.demon.co.uk> writes
>I always choose white (and ever so rarely
>black) as background colours, so it's not much of a problem.

Mo shades of grey in your rich tapestry of life? :-)
--
Tony Morgan e-mail: atom...@ndirect.co.uk
Atomor Web Limited Fax: +44 (0)1582 601124
Registered in England: 3611761

Paul L. Allen

unread,
Sep 7, 1998, 3:00:00 AM9/7/98
to
In article <905157...@nezumi.demon.co.uk>

Mar...@nezumi.demon.co.uk (Martin Tom Brown) writes:

> Worth pointing out that choosing exotic 24bit colours like #97FB61
> will produce irritating chicken pox dithering on restricted palettes.
> As a rule of thumb multiples of #33 are reliable on most platforms.
> (which systems does this fail on ?)

It fails on Acorn and some flavours of Unix.

--Paul

Roy Bailey

unread,
Sep 8, 1998, 3:00:00 AM9/8/98
to
Thanks, guys - this has pointed me in the right direction.

I had forgotten that Calculator had a hex conversion function, which is
very useful.

By playing around with the Windows Colour Selection box, I have found
that Red/Green/Blue and Hue/Saturation/Luminance are interdependant.
Alter the Luminance, for instance, and the proportions of the colours
change - and vice versa.

In my HTMl authoring program, WebEdit, you can play around with the
Colour Selection, add the result to Custom Colours, and when you press
OK it puts the 6-figure hex value in at the cursor.

I don't imagine that it is unique in this respect.

brian jaques

unread,
Sep 10, 1998, 3:00:00 AM9/10/98
to
Tony Morgan <to...@atomor.demon.co.uk> wrote:

>> Is it possible to correlate HTML colour codes (such as #99FF66) with
>> the Red/Blue/Green and Hue/Sat/Lum controls in the Windows Colour
>> Selection Dialogue box?

I have written a small BASIC program that does what you want.
It was written for use on my Acorn Archimedes platform but is so
un-complex that it should run, or be very easy to modify to run, on any
other platform from which you can directly use such a program.
If you, or any one else, is interested drop me an e-mail.

--

Brian Jaques

br...@jaq1.demon.co.uk

http://www.jaq1.demon.co.uk

Ray Proven

unread,
Sep 11, 1998, 3:00:00 AM9/11/98
to
In article <n838...@jaq1.demon.co.uk>, brian jaques
<br...@jaq1.demon.co.uk> writes
Broken separator
>
>Brian Jaques
>
APOPI Java has built in conversion methods for this. Of course learning
Java just to do this might be a *little* extreme :-)
--
Ray

"Water, taken in moderation, never harmed anyone."
Mark Twain

Robert Bradley

unread,
Sep 16, 1998, 3:00:00 AM9/16/98
to
In article <F+YWe...@sktb.demon.co.uk>, Paul L. Allen writes

Try mode 15/28.
--
Robert Bradley

I am not a mindreader, so I don't know everything.

Paul L. Allen

unread,
Sep 20, 1998, 3:00:00 AM9/20/98
to
In article <jnwYuDAQkAA2Iw$9...@bradley-family.demon.co.uk>
Robert Bradley <ne...@bradley-family.demon.co.uk> writes:

> In article <F+YWe...@sktb.demon.co.uk>, Paul L. Allen writes
> >In article <905157...@nezumi.demon.co.uk>
> > Mar...@nezumi.demon.co.uk (Martin Tom Brown) writes:
> >
> >> Worth pointing out that choosing exotic 24bit colours like #97FB61
> >> will produce irritating chicken pox dithering on restricted palettes.
> >> As a rule of thumb multiples of #33 are reliable on most platforms.
> >> (which systems does this fail on ?)
> >
> >It fails on Acorn and some flavours of Unix.
>
> Try mode 15/28.

The first is a 640x256 256-colour mode, the second a 640x480 (VGA)
256-colour mode. I find VGA very cramped and with a nasty aspect ratio.
There are far nicer modes available, even on the original Acorn hardware
that's a decade old (and all without needing to buy a video driver card).

However, this was all about *colours*, not resolutions. And the
fact is that the Acorn 256-colour palette is totally different to
the Netscape Windows 216-colour palette or its superset the Netscape
Mac 256-colour palette. All of them are different yet again to the
Netscape 125-colour palette used on some flavours of Unix (which has
only 8 colours in common with the Netscape 216-colour palette).

As I said, the multiples of #33 rule fails on Acorn platforms. But
the dithering algorithms used mean that it's still quite good -
the result looks nowhere near as bad as a GIF optimized for the Acorn
palette when displayed on a Windows box in 256-colour mode. The multiples
of #33 rule fails very badly on those Unix boxes that use the Netscape
125-colour palette.

--Paul

0 new messages