Microsoft Planner / Project for the Web Color Label Values

If you use Microsoft Planner or Project for the Web, you’re probably familiar with the colored labels you can add to tasks. These can be renamed to whatever you like; they’re used to “flag” tasks.

screenshot of colored flags

When we pull this task data into Power BI, we lose a lot of the label details. If we’re using basic tier Planner, we keep the color name but not the label text. If we’re using Project for the web, we retain the label text and an ID for the color, but not the actual color value. I really like the idea of getting the task and label data from Dataverse, which is possible with the plan 1 licensing and higher, but it comes through like this:

screenshot of color index column in power query

Perhaps somewhere there exists a reference to which color index value is associated with which color label, but I couldn’t find that information anywhere on the public internet or in the available Dataverse tables. Color1 and Color2 are not very helpful either. So, how do we know which color is which?

I went through and hand-extracted them, then used an eyedropper tool to get the hex color codes for each label. 😅

I’ll insert this a few ways for convenience. Below is the HTML table so you can see the colors, under that is a button for the Excel file download.

Color Label Values

Color Name msdyn_colorindex Color Index Background Color Hex Code Text Color Hex Code Sort
Pink192350000Color0#FBDDF0#AC2D7E0
Red192350001Color1#E9C7CD#750B1C1
Yellow192350002Color2#F5EDCE#6D57002
Green192350003Color3#DBEBC7#3863043
Blue192350004Color4#D0E7F8#005BA14
Purple192350005Color5#D8CCE7#401B6C5
Bronze192350006Color6#F1D9CC#A741096
Lime192350007Color7#E5F2D3#4262177
Aqua192350008Color8#C2E7E7#0167678
Gray192350009Color9#E5E4E3#615E5C9
Silver192350010Color10#EAEEEF#4B535610
Brown192350011Color11#E2D1CB#4D291C11
Cranberry192350012Color12#C50F1F#FFFFFF12
Orange192350013Color13#DA3B01#FFFFFF13
Peach192350014Color14#FF8C00#00000014
Marigold192350015Color15#EAA300#00000015
Light Green192350016Color16#13A10E#00000016
Dark Green192350017Color17#0B6A0B#FFFFFF17
Teal192350018Color18#00B7C3#00000018
Light Blue192350019Color19#0078D4#FFFFFF19
Dark Blue192350020Color20#003966#FFFFFF20
Lavender192350021Color21#7160EB#FFFFFF21
Plum192350022Color22#77004D#FFFFFF22
Light Gray192350023Color23#7A7574#FFFFFF23
Dark Gray192350024Color24#394146#FFFFFF24

Okay, but what do I do with this?

If you’re using Power BI, you can use the Excel file as a data source (either in SharePoint, a dataflow, or just paste it in a data table). You can either relate it to your Dataverse “msdyn_projectlabel” table on the color index (recommended), or left join it in the query editor on the color index and expand to get the color names and hex codes. That’ll let you conditionally color the tag text and background, choosing the format style of “field value”:

screenshot of conditional formatting settings

Keep in mind that the labels are a multivalue sort of situation, so one task could have multiple color flags. What that means is, if you’re trying to display the color for a task with multiple labels, things suddenly get a lot more complicated – you need to venture into SVG or the HTML visual to display them properly. If you want to keep it simple, though, you could have a conditional column to display a single specific important flag at a time – e.g. the “red” one, formatted red, and display the label text on the tasks with the conditional formatting. You can also use these values as filters on your report by dropping them into the filter pane.

BUT at least now we’re all clear about which color IDs are which, right?

Leave a Comment