1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

#555 what is the color?

Discussion in 'CSS' started by rebrain, Mar 24, 2008.

  1. #1
    Lately I have been noticing in webpages the colors being descripted as following: #ccc #888 #555 #bbb...
    only 3 letters!
    how are these colors built?
    Thx.
    SEMrush
     
    rebrain, Mar 24, 2008 IP
    SEMrush
  2. clinton

    clinton Well-Known Member

    Messages:
    2,166
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    110
    #2
    A color like this, #000 or #FFF or #777 just means that the next three letter are the same(#000000, #FFFFFF, #777777). I guess it just saves disk space. I use it quite a bit for white, balck, grey etc.

    This is a great site to find hex codes http://www.december.com/html/spec/color.html
     
    clinton, Mar 24, 2008 IP
  3. rebrain

    rebrain Peon

    Messages:
    60
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thank you!
     
    rebrain, Mar 24, 2008 IP
  4. clinton

    clinton Well-Known Member

    Messages:
    2,166
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    110
    #4
    no prblm:)
     
    clinton, Mar 24, 2008 IP
  5. blueparukia

    blueparukia Well-Known Member

    Messages:
    1,559
    Likes Received:
    69
    Best Answers:
    7
    Trophy Points:
    160
    #5
    I'll explain a bit more in depth.

    Hex colours work by using Red Green and Blue outputs (RGB). 0 is the weakest you can get and F is the strongest. (All values are: 0123456789ABCDEF).

    So black is #000, which is no red, no green and no blue.

    #FFF is full red, full green and full blue, so the colour is white.

    Most of the time though, hex colors will go like: Red Red Green Green Blue Blue (RRGGBB). This way "00" is the weakest you can have and "FF" is the strongest.

    Using that way, white can also be #FFFFFF and black can also be #000000.

    You can of course combine: #FF00FF - which breaks up as: Full Red, No green and full blue:

    (Pink).

    It is best to use short colour codes where possible, though downloading the Opera widget "All the colours of the rainbow" may help you when getting started.
     
    blueparukia, Mar 25, 2008 IP
    sachin410, clinton and turbulence like this.
  6. turbulence

    turbulence Active Member

    Messages:
    956
    Likes Received:
    59
    Best Answers:
    0
    Trophy Points:
    88
    #6
    This is a real professional explanation, mate! Really useful info! ;)
     
    turbulence, Mar 25, 2008 IP
  7. rebrain

    rebrain Peon

    Messages:
    60
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    yeah really nice!
     
    rebrain, Mar 25, 2008 IP
  8. clinton

    clinton Well-Known Member

    Messages:
    2,166
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    110
    #8
    I never really knew that mush about hex codes, thanks for the explanation:)
     
    clinton, Mar 25, 2008 IP
  9. blueparukia

    blueparukia Well-Known Member

    Messages:
    1,559
    Likes Received:
    69
    Best Answers:
    7
    Trophy Points:
    160
    #9
    blueparukia, Mar 25, 2008 IP