Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > CSS color codes

Reply
Thread Tools

CSS color codes

 
 
Leslie
Guest
Posts: n/a
 
      11-20-2003
Now that I'm learning that colors can be coded in CSS with a 3 digit
code (rather than the 6 digit rgb code) is there a chart anywhere that
lists the 3 digit codes? I've googled and come up empty. Or, can I
use the 6 digit chart I've had for years and figure out the 3 digit
CSS color code?

Thank you!

Leslie
 
Reply With Quote
 
 
 
 
Eric Bohlman
Guest
Posts: n/a
 
      11-20-2003
Leslie <> wrote in
news::

> Now that I'm learning that colors can be coded in CSS with a 3 digit
> code (rather than the 6 digit rgb code) is there a chart anywhere that
> lists the 3 digit codes? I've googled and come up empty. Or, can I
> use the 6 digit chart I've had for years and figure out the 3 digit
> CSS color code?


Each hex digit in a three-digit code is simply doubled up (multiplied by 11
hex) to create the corresponding six-digit code. I.E. #bad is shorthand
for #bbaadd. This means that three-digit codes specify only a subset of
the colors that can be specified by six-digit codes.

 
Reply With Quote
 
 
 
 
Paul Aitch
Guest
Posts: n/a
 
      11-20-2003

"Leslie" <> wrote in message
news:...
> Now that I'm learning that colors can be coded in CSS with a 3 digit
> code (rather than the 6 digit rgb code) is there a chart anywhere that
> lists the 3 digit codes? I've googled and come up empty. Or, can I
> use the 6 digit chart I've had for years and figure out the 3 digit
> CSS color code?
>
> Thank you!
>
> Leslie


See if this helps you:
http://home.clara.net/guycroft/utils/coloropts.html

Paul


 
Reply With Quote
 
Sid Ismail
Guest
Posts: n/a
 
      11-20-2003
On Thu, 20 Nov 2003 02:16:35 GMT, Leslie <> wrote:

: Now that I'm learning that colors can be coded in CSS with a 3 digit
: code (rather than the 6 digit rgb code) is there a chart anywhere that
: lists the 3 digit codes?


No chart. The 3-digit code is an abbreviation.

#CCFFCC = #CFC
#112233 = #123
#121212 = #121212 (can't abbreviate)

Sid

 
Reply With Quote
 
Richard
Guest
Posts: n/a
 
      11-20-2003
Sid! wrote:

> On Thu, 20 Nov 2003 02:16:35 GMT, Leslie <>
> wrote:


> : Now that I'm learning that colors can be coded in CSS with a 3 digit
> : code (rather than the 6 digit rgb code) is there a chart anywhere that
> : lists the 3 digit codes?



> No chart. The 3-digit code is an abbreviation.


> #CCFFCC = #CFC
> #112233 = #123
> #121212 = #121212 (can't abbreviate)


> Sid


The closest 3 digit version to 121212 would be 111.
#CAFACA would still equal #CFC

In essence you have CC + FF + CC to equal the color.
to equate to 3 digit, remove the 2nd digit from each pair.
If red is #FF0000 or #F00, Then #F10000 is nothing more than a lighter shade
of red.


 
Reply With Quote
 
Sid Ismail
Guest
Posts: n/a
 
      11-20-2003
On Thu, 20 Nov 2003 16:57:44 -0600, "Richard" <anonymous@127.000> wrote:

: > : Now that I'm learning that colors can be coded in CSS with a 3 digit
: > : code (rather than the 6 digit rgb code) is there a chart anywhere that
: > : lists the 3 digit codes?
:
:
: > No chart. The 3-digit code is an abbreviation.
:
: > #CCFFCC = #CFC
: > #112233 = #123
: > #121212 = #121212 (can't abbreviate)
:
: > Sid
:
: The closest 3 digit version to 121212 would be 111.
: #CAFACA would still equal #CFC
:
: In essence you have CC + FF + CC to equal the color.
: to equate to 3 digit, remove the 2nd digit from each pair.
: If red is #FF0000 or #F00, Then #F10000 is nothing more than a lighter shade
: of red.
:


What are you on about? We don't want the closest colour - we want that
colour! We're not talking closest to websafe colours (I know 111111
isn't).

Who wanted a _lighter_ shade of red??

Sid

 
Reply With Quote
 
William Tasso
Guest
Posts: n/a
 
      11-21-2003
Sid Ismail wrote:
> ...
> Who wanted a _lighter_ shade of red??


I'll have one - if they're on 'special' this week.

--
William Tasso


 
Reply With Quote
 
rf
Guest
Posts: n/a
 
      11-21-2003

"William Tasso" <> wrote in message
news:bpjns9$1p267c$...
> Sid Ismail wrote:
> > ...
> > Who wanted a _lighter_ shade of red??

>
> I'll have one - if they're on 'special' this week.


Isn't that a lighter shade of pale?

Cheers
Richard.


 
Reply With Quote
 
Toby A Inkster
Guest
Posts: n/a
 
      11-21-2003
rf wrote:

> "William Tasso" <> wrote in message
> news:bpjns9$1p267c$...
>> Sid Ismail wrote:
>>> ...
>>> Who wanted a _lighter_ shade of red??

>>
>> I'll have one - if they're on 'special' this week.

>
> Isn't that a lighter shade of pale?


I think you'll find it was a Whiter Shade of Pale.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me - http://www.goddamn.co.uk/tobyink/?page=132

 
Reply With Quote
 
rf
Guest
Posts: n/a
 
      11-21-2003

"Toby A Inkster" <> wrote in message
news. ..
> rf wrote:
>
> > "William Tasso" <> wrote in message
> > news:bpjns9$1p267c$...
> >> Sid Ismail wrote:
> >>> ...
> >>> Who wanted a _lighter_ shade of red??
> >>
> >> I'll have one - if they're on 'special' this week.

> >
> > Isn't that a lighter shade of pale?

>
> I think you'll find it was a Whiter Shade of Pale.


Yep. That's it.

Showing our age, methings

Cheers
Richard.


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing font color from current font color to black color Kamaljeet Saini Ruby 0 02-13-2009 04:58 PM
how to write codes to connect access database using html codes hiralcp Software 0 12-18-2007 08:49 PM
How to use file I/o codes with form and controls codes Allen ASP .Net 1 12-03-2007 12:04 AM
Virtual Key Codes, Scan Codes and ASCII Codes in C gj_williams2000@yahoo.co.uk C Programming 2 08-20-2005 11:04 AM
RegEx replace of html codes to ascii codes Greg -- ASP .Net 4 08-09-2005 07:27 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57