Skip to content Skip to footer

The 12-bit rainbow palette by rguiscard

15 Comments

  • Post Author
    jjgreen
    Posted April 28, 2025 at 11:18 pm

    Available in several formats at cpt-city http://seaviewsensing.com/pub/cpt-city/kmo/

  • Post Author
    pspeter3
    Posted April 28, 2025 at 11:24 pm

    Are there gray colors to go along with it? This seems great for charts though

  • Post Author
    BugsJustFindMe
    Posted April 28, 2025 at 11:34 pm

    > chosen with consideration for how we perceive luminance, chroma, and hue

    Needs more consideration. The colors are not equally different.

  • Post Author
    barrkel
    Posted April 28, 2025 at 11:41 pm

    My usual problem with these palettes from color blindness. The two greens are almost identical for the most common type. They don't have good contrast if they're e.g. used for lines in a chart.

  • Post Author
    kazinator
    Posted April 28, 2025 at 11:45 pm

    By LCH, is she referring to this?

    https://en.wikipedia.org/wiki/CIELAB_color_space#Cylindrical…

    I've not paid much attention to this aspect of CIELAB, but, oh, I see; if you go clockwise around the rectilinear representation you do get rainbow order.

  • Post Author
    cdev_gl
    Posted April 28, 2025 at 11:51 pm

    Really cool project! I like the twelve color palette the author presents, and the grayscales, but I'd love to see more about the choice to use twelve bits to encode it. Presumably enough of the rest of the possibility space is needed to justify writing a custom encoding. Or maybe it was done because custom color encodings are cool, which they definitely are.

    The palette is so pretty, I wonder how the whole LCH color space quantized down to 4096 colors looks. I find limited bitdepth color spaces fascinating to look at, there's so many choices about how to represent color they can look wildly different.

  • Post Author
    jasonthorsness
    Posted April 28, 2025 at 11:58 pm

    Beautiful palette!

    CSS recently has been adding way more color features, here's the palette represented in oklch:

        #817 → oklch(0.44 0.1815   335.38)
        #a35 → oklch(0.51 0.1559     7.49)
        #c66 → oklch(0.63 0.1298    21.44)
        #e94 → oklch(0.75 0.1415    62.42)
        #ed0 → oklch(0.88 0.18646  103.9148)
        #9d5 → oklch(0.82 0.181    131.77)
        #4d8 → oklch(0.80 0.1757   154.39)
        #2cb → oklch(0.76 0.1298   184.05)
        #0bc → oklch(0.72 0.123861 206.321)
        #09c → oklch(0.64 0.129199 231.0549)
        #36b → oklch(0.52 0.1448   260.03)
        #639 → oklch(0.44 0.1603   303.37)
    

    You can see the lightness and chroma moving within a narrow range as it sweeps the hue. These new color space functions make making palettes like this way easier.

  • Post Author
    msephton
    Posted April 29, 2025 at 12:00 am

    love this! great work. I often use 12-bit/4-character definitions just for a fun extra limitation. going the extra mile to create a palette with them is so cool

  • Post Author
    NelsonMinar
    Posted April 29, 2025 at 12:39 am

    The 12 bit constraint is a fun one although a little artificial. But picking 12 different colors with constant luminance is quite a challenge! ColorBrewer only goes to 9, and to my eyes more than 6 is very hard to make out. But these 12 are quite nice if you don't mind a little blurring, particularly folks with some form of colorblindness.

  • Post Author
    jjmarr
    Posted April 29, 2025 at 1:15 am

    Why is 12 bits 4 characters? Shouldn't it be 3 hexadecimal digits (as shown on the website), since each digit is 4 bits?

  • Post Author
    jjcm
    Posted April 29, 2025 at 1:18 am

    Fun exercise in constraints, but why limit yourself to 12 bit color? Was this a technical requirement?

  • Post Author
    matthew_morgan
    Posted April 29, 2025 at 1:34 am

    Thanks dude

  • Post Author
    whall6
    Posted April 29, 2025 at 1:43 am

    Why is the far left and far right nearly the same color? If you’re showing a gradient the max and min would be nearly indistinguishable.

  • Post Author
    hedora
    Posted April 29, 2025 at 2:43 am

    Technically, this is a 3.5849625 bit palette, though if you add black, white, transparent, and a reserved entry, it’d be 4 bit.

  • Post Author
    Dwedit
    Posted April 29, 2025 at 3:10 am

    The problem with using 12-bit sRGB is that sRGB is not a linear colorspace. You're not taking 16 evenly spaced points in the full range of brightness, you're taking 16 points along the sRGB curve.

Leave a comment

In the Shadows of Innovation”

© 2025 HackTech.info. All Rights Reserved.

Sign Up to Our Newsletter

Be the first to know the latest updates

Whoops, you're not connected to Mailchimp. You need to enter a valid Mailchimp API key.