hex vs rgb

  • # August 12, 2012 at 9:04 pm

    I was just wondering, is there any advantage in one over the other or it doesn’t really matter cause both get rendered the same?

    # August 12, 2012 at 9:05 pm

    I wrote an article on that very topic! http://joshnh.com/2011/09/29/hsla-are-you-using-it-here-is-why-i-think-you-should-be/

    # August 12, 2012 at 9:13 pm

    This reply has been reported for inappropriate content.

    Thanx Josh

    # August 12, 2012 at 9:22 pm

    This reply has been reported for inappropriate content.

    Got two questions.
    How do I convert hex to hsl?
    What those percentages attributes do?

    # August 12, 2012 at 9:30 pm

    Here is the converter that I use: http://serennu.com/colour/hsltorgb.php

    The percentage components of HSL are the Saturation and Lightness. 0% Saturation is no colour and 100% is full colour. 0% Lightness is black and 100% is white. So if you wanted red you would use hsl(0,50%,50%).

    # August 12, 2012 at 9:32 pm

    This reply has been reported for inappropriate content.

    Cool, very nice :)
    Got it all bookmarked
    Thanx again

    # August 12, 2012 at 9:47 pm

    No worries!

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed