6
pythondev
46d

RGB(A) or HEX, which do you prefer in ex. CSS?

Comments
  • 4
    Rgba. Alternately whatever zeplin spits out from our design team.
  • 3
    Heh, I always did mine in hex. I didn't even know rgb and rgba were an option. Most other programs I use have color constants and the standard hex. So I mostly do hex.
  • 1
    Both.
  • 2
    both, but rgba has become somewhat of a preference since partly transparent bg colors seem to be in the liking of our designer.
  • 1
    Why is 8 character hex not a thing? I looked, and it was thought about to be included, but I cannot see if it was ever included in CSS3. Is it included in CSS4?
  • 0
    Generally hex, but a little rgba
  • 1
    since there are color pickers in vs code i don't care as long they are consistent organised in a document color library in css variables.
    I really hate redundant colors for the same thing just out of lazyness.
  • 4
  • 1
    rgba, because its way more semantical
  • 1
    you know what would be cool?
    more colors! At least 100% adobe rgb adoption worldwide for all devices.
  • 0
    @heyheni AdobeRGB has the same amount of colours as sRGB
  • 3
    Hex because it's what I'm best at. I used to use hex colors so frequently that I could look at a color and tell you its hex value within a few digits. I wasn't as good with rgb.

    If I had to pick one, however, it would be HSL. It's easier in almost every situation, more intuitive (this hue, this amount, this brightness), and I love that it makes keeping the color vibrant (or in a particular shade) so simple. It's as wonderful to use as Ruby.
  • 2
    @Demolishun It is, though?
    I'm not sure about support, but I've been using it for awhile now. Stick a #c71585aa on an sticky div somewhere and scroll.
  • 0
  • 0
    hex look cleaner
  • 4
    I usually do hex unless I need to make the element transparent
  • 1
    @heyheni You posted a colour gamut chart. Now what does it prove?
    Color count of both sRGB and AdobeRGB is 256*256*256=16.7mil
  • 4
    @Demolishun There are 8 character hex values. #RRGGBBAA or #RGBA.

    See: https://caniuse.com//...
Add Comment