actualNoteContentPart: When you highlight text using the highlight option in the formatting bar or using the keyboard shortcut Ctrl-H / Cmd-H, the selected text will get the default dark yellow background (like this). Amplenote offers further customization options for both the text itself and its background. Let's explore that below.
  
  # Changing the foreground or background color of the text
  You can change the color of the text's foreground (letters) and background by selecting the desired text and choosing one of the following options:
  [To change the foreground color, click on  the "A" icon](https://images.amplenote.com/468d9ab8-12c6-11ef-a054-9a665e06d35f/cb061c75-ace4-4ebd-a47b-9b150ebdbfff.png)  
  [To change the background color, choose the bucket icon](https://images.amplenote.com/468d9ab8-12c6-11ef-a054-9a665e06d35f/2e82b931-203c-43cc-b1b7-df3954184e53.png) .
   
  Choosing either option will open the modal with a pre-defined color picker, which also includes gradient and rainbow colors.
   
  
  
  
  
  Some inline examples for your perusing ✨ (and here's a rainbow option)
  
  # Background colors inside table cells
  Table cells also support different [background colors](/help/tables#Table_styling_and_formatting_options) . You can customize cell background color by selecting the table cell you wish to apply the changes to and clicking on the bucket icon:
   
  
  
  
  
  
  | A table | with | mixed | 
  | text  | and | background | 
  | colors |  |  | 
  
  # Color options inside code blocks
  [Check out the help page on code blocks for more details](/help/code_block_colored_block_text_formatting) .
processedNoteContent: ---
  title: Applying custom foreground and background color...
  tags: 
  ---
  When you highlight text using the highlight option in the formatting bar or using the keyboard shortcut Ctrl-H / Cmd-H, the selected text will get the default dark yellow background (like this). Amplenote offers further customization options for both the text itself and its background. Let's explore that below. 
  Changing the foreground or background color of the text
  You can change the color of the text's foreground (letters) and background by selecting the desired text and choosing one of the following options:
  [To change the foreground color, click on  the "A" icon](https://images.amplenote.com)`
  
  [To change the background color, choose the bucket icon](https://images.amplenote.com)`
   .
   
  Choosing either option will open the modal with a pre-defined color picker, which also includes gradient and rainbow colors.
    Some inline examples for your perusing ✨ (and here's a rainbow option) 
  Background colors inside table cells
  Table cells also support different [background colors](/help/tables#Table_styling_and_formatting_options)
   . You can customize cell background color by selecting the table cell you wish to apply the changes to and clicking on the bucket icon:
    | A table | with | mixed |
  | text  | and | background |
  | colors |  |  | 
  Color options inside code blocks
  [Check out the help page on code blocks for more details](/help/code_block_colored_block_text_formatting)
   .
noteTitle: Applying custom foreground and background color to text and table cells