The below example shows a color gradient rectangle, whose color is related to the workstate of the object.
<ColStyle Name="W" Width="20" SortName="Workstate">
<CellTemplate>
<Rectangle VerticalAlignment="Center" Width="30" Height="20" ToolTip="{Binding Path=[task.calendarRef.workstateRef.name]}" >
<Rectangle.Fill>
<LinearGradientBrush StartPoint="0,0">
<GradientStop Color="White" Offset="0.0"/>
<GradientStop Color="{Binding Path=[task.calendarRef.workstateRef.color], Converter={StaticResource ColorConverter}, FallbackValue=White}" Offset="1.0"/>
</LinearGradientBrush>
</Rectangle.Fill>
</Rectangle>
</CellTemplate>
</ColStyle>