[ASK] What is the difference 3 digit hexa and 6 digit hexa color?

Discussion in 'CSS' started by so_sweet, Sep 5, 2010.

  1. #1
    Hi, i just wondering what is the difference about that?
    example : #fff with #ffffff
    it will show the same color at the end
    there's involving RGB or CMYK? but i don't think so
     
    so_sweet, Sep 5, 2010 IP
  2. radiant_luv

    radiant_luv Peon

    Messages:
    1,327
    Likes Received:
    34
    Best Answers:
    1
    Trophy Points:
    0
    #2
    The triplet is still technically hexadecimal but it is just a shortcut. All it does is repeat each of the values and use that for the RGB. #333 becomes #333333, #abc becomes #aabbcc etc.

    I think a the reasons for using this, very minor space savings and values of R, G and B.
     
    radiant_luv, Sep 5, 2010 IP
  3. so_sweet

    so_sweet Member

    Messages:
    234
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    28
    #3

    got it, thanks for the answer
     
    so_sweet, Sep 6, 2010 IP
  4. CSM

    CSM Active Member

    Messages:
    1,047
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    55
    #4
    Eeek, wrong answer.

    #333 becomes #303030 ;)

    If I am wrong please correct me :p
     
    CSM, Sep 6, 2010 IP
  5. kmap

    kmap Well-Known Member

    Messages:
    2,215
    Likes Received:
    29
    Best Answers:
    2
    Trophy Points:
    135
    #5
    may be it becomes

    #030303

    Regards

    Alex
     
    kmap, Sep 6, 2010 IP
  6. CSM

    CSM Active Member

    Messages:
    1,047
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    55
    #6
    No, just test it yourself and you will see.

    #333 is #303030

    If you would do color: #fff and this would be #0f0f0f then you could not see much on black background ... but the color of the font is white.
     
    CSM, Sep 6, 2010 IP
  7. kmap

    kmap Well-Known Member

    Messages:
    2,215
    Likes Received:
    29
    Best Answers:
    2
    Trophy Points:
    135
    #7
    i am clear now

    #fff is #ffffff

    not #0f0f0f and #f0f0f0

    Please correct me if i am wrong

    Regards

    Alex
     
    kmap, Sep 6, 2010 IP
  8. CSM

    CSM Active Member

    Messages:
    1,047
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    55
    #8
    Ok, I am wrong. Just checked it with ColorPicker.

    #333 is #333333
     
    Last edited: Sep 6, 2010
    CSM, Sep 6, 2010 IP
  9. so_sweet

    so_sweet Member

    Messages:
    234
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    28
    #9
    you two guys make me laugh :D
     
    so_sweet, Sep 6, 2010 IP
  10. CSM

    CSM Active Member

    Messages:
    1,047
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    55
    #10
    Hehehe...

    My friend radiant_luv is correct. E.g. #333 becomes #333333.

    I was wrong, he is right :D
     
    CSM, Sep 6, 2010 IP