Colored Folders in SharePoint Online and OneDrive

As part of roadmap ID 124980, Microsoft recently rolled out a new feature that allows users to colorize their folders with a preset range of 16 colors in SharePoint Online and OneDrive. This feature applies to both new folders and existing folders. Now, users can customize their folders with different colors for better visual organization. In this article, let’s see how to use the colored folders effectively in SharePoint Online.

How to create colored Folders in SharePoint Online or OneDrive?

Colored folders can help differentiate between folders containing different types of content or projects, making it easier to identify and locate specific content. To create a new colored folder in SharePoint, follow these steps:

  1. Open the SharePoint Document Library or OneDrive where you want to create the folder.
  2. Click on the “New” button, and choose “Folder” to create a new folder.
  3. In the “New Folder” dialog box, enter the name of the folder.
  4. Below the name field, you will see the option to set the color of the folder
  5. Click on the color you want to use for the folder from the palette of 16 colors.
    create colored folder in sharepoint online
  6. Click “Create” to create the new folder with the selected color.

It is important to note that folder colors are not synced to your local computer, so that you won’t see anything from the folder colors in the Explorer on your computer through mapped drive or OneDrive sync. It will only be visible in SharePoint Online or OneDrive in the browser. Colored folders can help you find folders quicker, but it’s not part of the metadata. So you can’t search for the color or filter on it.

Similarly, you can create a new folder in OneDrive for Business and set its color:

folder color in OneDrive

Change the Color of an Existing Folder

You can also change the color of any existing folder. Here is how:

  1. Right-click on the folder within SharePoint Document Library or OneDrive and choose “Folder Color”
  2. Select one of the available colors from the palette of 16 colors.
    change folder color in sharepoint
  3. Once configured with colors, your document library folders will display your chosen custom colors.

It’s worth mentioning, the colored folders are not applicable to folders created as part of Microsoft Teams channels. Also, any subfolder doesn’t inherit the color from its parent folder. The color options are available on the rename popup as well:

change folder color sharepoint online onedrive

PowerShell script to create color folders in SharePoint

Here is the PowerShell script to create colored folders in SharePoint Online:

#Config Variables
$LibraryName = "Invoices"
Try {
    #Connect to PnP Online
    Connect-PnPOnline -Url $SiteURL -Interactive
    #Create Multiple Folders
    $Array = 0..15
        $FolderName = 'Folder {0:D2}' -f $_
        $NewFolder = Add-PnPFolder -Name $FolderName -Folder $LibraryName  -ErrorAction Stop
        Write-host "Folder Created:"$FolderName

         #Get the created folder
        $FolderItem = Get-PnPListItem -List $LibraryName -UniqueId $NewFolder.UniqueId

        #Change the color for the folder
        Set-PnPListItem -List $LibraryName -Identity $FolderItem.Id -Values @{"_ColorHex" = $_ }
Catch {
    write-host "Error: $($_.Exception.Message)" -foregroundcolor Red

Here is the script in action:

sharepoint change folder color

Folder Colors Reference

Here is the Hex value for available folder colors:

ColorColor Hex
YellowEmpty or 0 (Default)
Dark red1
Dark orange2
Dark green3
Dark teal4
Dark blue5
Dark purple6
Dark pink7
Light red9
Light orange10
Light green11
Light teal12
Light blue13
Light purple14
Light pink15

Wrapping up

In conclusion, implementing a system of colored folders can greatly improve the organization and navigation of SharePoint document libraries and OneDrive folders. By using colored folders in SharePoint Online, you can create a visual distinction that makes content more accessible to find and organize. Try to use colors consistently across your SharePoint sites. For example, always use green folders for financial content, red for marketing campaigns, and blue for HR documents. This helps users quickly identify the type of content as they navigate. Whether you manage a large set of team sites or your own personal storage, colored folders add visual clarity that makes SharePoint and OneDrive more user-friendly.

Salaudeen Rajack

Salaudeen Rajack - Information Technology Expert with Two-decades of hands-on experience, specializing in SharePoint, PowerShell, Microsoft 365, and related products. He has held various positions including SharePoint Architect, Administrator, Developer and consultant, has helped many organizations to implement and optimize SharePoint solutions. Known for his deep technical expertise, He's passionate about sharing the knowledge and insights to help others, through the real-world articles!

5 thoughts on “Colored Folders in SharePoint Online and OneDrive

  • Is there any way to capture e.g. all the red (hex) folders in a document library or a site with PowerShell? Why I would like to achieve this? If the color has a meaning in an organization I would like to capture all folders that has the same meaning – in my case shared folders.

  • hi, do you have any suggestions for automatically creating a document library with 400 colored folders? I have setup a document library as a template but this does not provide the expected behavior. We have an excel file with the correct folders and I suppose there would be some way to automate the creation of the folders but I was really trying to use the site template and list templates. thanks.

  • hi, i am using power automate flow to create planner task when a new folder is added to sharepoint document librady.
    i also need to check folder’s color in order to assign priority to task.
    lets say if folder 1 is red then task 1 will have priority 1 etc…
    i am not able to extract that info using powe automate. any ideas? could http request be a way?

    • i managed to find out the solution.thnx

  • Major improvement!


Leave a Reply

Your email address will not be published. Required fields are marked *