Skip to main content
Question

getHexForColor doesn't seem to match colors used on the AirTable UI

  • January 25, 2026
  • 3 replies
  • 22 views

Forum|alt.badge.img+2

I’m using the utility function getHexForColor to get the color the user defined in a single select field and use it in my interface.  However, the hex colors I’m getting do not match the colors used on the AirTable UI.
For example for a selection I have, the Airtable Color is blueBright and when I call getHexForColor  I get #2d7ff9, however, the AirTable UI uses #166ee1.

I also noticed shouldUseLightTextOnColor doesn’t seem to work well on dark mode but I think that’s expected as I think dark mode is still experimental, right?

3 replies

TheTimeSavingCo
Forum|alt.badge.img+31

Hm yeah.  Just tried this and orangeBright shows as #D54401 in the UI but getHexForColor returns #FF6F2C , greenLight2 shows as #CFF5D1 and gets returned as #D1F7C4

 

Reckon you might want to open a support ticket directly to confirm!


Forum|alt.badge.img+2
  • Author
  • New Participant
  • January 26, 2026

Thanks! I raised a ticket. For now, I’ll consider writing a workaround...


Mike_AutomaticN
Forum|alt.badge.img+28

Lol, interesting catch ​@WGomes. Please make sure to keep us posted on their answer. This will most probably help future readers :D

Mike, Consultant @ Automatic Nation 
YouTube Channel