Color Hex Codes

Discussion in 'CSS' started by fullfocus, Oct 14, 2008.

  1. #1
    Hello:

    I have a CSS file which has the first three characters of the hex code for colors.

    Can someone tell me how I can figure out the entire hex code? I need to change some colors and the three characters is not helping.

    Thanks.
     
    fullfocus, Oct 14, 2008 IP
  2. LeetPCUser

    LeetPCUser Peon

    Messages:
    711
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #2
    If there is a hex code with just three letters or numbers duplicate it for the real hex.

    For example: #fff = #ffffff = white
     
    LeetPCUser, Oct 14, 2008 IP
  3. fullfocus

    fullfocus Peon

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hi,

    So if I have a code like #CCC it is #CCCCCC.

    Now what happens if I have a code like #F93?

    Or, let's say I have the following #F5F5DC, how do I convert that into 3 characters?
     
    fullfocus, Oct 14, 2008 IP
  4. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #4
    True

    It's equivalent to #ff9933

    You don't. See §4.3.6 Syntax and basic data types, color-units.

    cheers,

    gary
     
    kk5st, Oct 14, 2008 IP
  5. LeetPCUser

    LeetPCUser Peon

    Messages:
    711
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Only repetitious hex values can be converted into a three digit hex. I don't use three digit because eventually someone will get confused by the code.
     
    LeetPCUser, Oct 15, 2008 IP