For loop and Dictionaries

This is a simple program that works with bg=‘#000’ but not with color_hex_values. The dictionary is correct and works fine using bg=color_hex_codes in a stand alone script that puts color into a set of buttons. Why does it not like bg=color_hex_color? Is the for loop for the colors in the button in the correct place? I think this part will be fixed when the bg= problem is fixed.
As there are many color pickers out there I thought I would write my own for the knowledge I will gain from the experience. I would like to know WHY the bg didn’t work in the button make code. If it will help I can post the working dictionary and making buttons that proves the dictionary works.
Thanks, this month I’m trying to learn tkinter, pyGame is next month.

from tkinter import *
import tkinter as tk

# Create & Configure root
root = tk.Tk()
root.rowconfigure(0, weight=1)
root.columnconfigure(0, weight=1)

# Create & Configure frame
frame=Frame(root)
frame.grid(row=0, column=0, sticky=N+S+E+W)

# dictionary of colors codes in hex
color_dictionary = {
    'alice_blue':  '#F0F8FF',
    'antique_white':  '#FAEBD7',
    'antique_white_1':  '#FFEFDB',
    'antique_white_2':  '#EEDFCC',
    'antique_white_3':  '#CDC0B0',
    'antique_white_4':  '#8B8378',
    'aqua':  '#00F',
    'aqua_marine_1':  '#7FFFD4',
    'aqua_marine_2':  '#76EEC6',
    'aqua_marine_3':  '#66CDAA',
    'aqua_marine_4':  '#458B74',
    'azure_1':  '#F0FFFF',
    'azure_2':  '#E0EEEE',
    'azure_3':  '#C1CDCD',
    'azure_4':  '#838B8B',
    'banana':  '#E3CF57',
    'beige':  '#F5F5DC',
    'bisque_1':  '#FFE4C4',
    'bisque_2':  '#EED5B7',
    'bisque_3':  '#CDB79E',
    'bisque_4':  '#8B7D6B',
    'black':  '#000',
    'blanched_almond':  '#FFEBCD',
    'blue':  '#000555',
    'blue_2':  '#000385',
    'blue_3':  '#000055',
    'blue_4':  '#000395',
    'blue_violet':  '#8A2BE2',
    'brick':  '#9C661F',
    'brown':  '#A52A2A',
    'brown_1':  '#FF4040',
    'brown_2':  '#EE3B3B',
    'brown_3':  '#CD3333',
    'brown_4':  '#8B2323',
    'burly_wood':  '#DEB887',
    'burly_wood_1':  '#FFD39B',
    'burly_wood_2':  '#EEC591',
    'burly_wood_3':  '#CDAA7D',
    'burly_wood_4':  '#8B7355',
    'burnt_sienna':  '#8A360F',
    'burnt_umber':  '#8A3324',
    'cadet_blue':  '#5F9EA0',
    'cadet_blue_1':  '#98F5FF',
    'cadet_blue_2':  '#8EE5EE',
    'cadet_blue_3':  '#7AC5CD',
    'cadet_blue_4':  '#53868B',
    'cadmium_orange':  '#FF6103',
    'cadmium_yellow':  '#FF9912',
    'carrot':  '#ED9121',
    'chartreuse_1':  '#7FFF00',
    'chartreuse_2':  '#76EE00',
    'chartreuse_3':  '#66CD00',
    'chartreuse_4':  '#458B00',
    'chocolate':  '#D2691E',
    'chocolate_1':  '#FF7F24',
    'chocolate_2':  '#EE7621',
    'chocolate_3':  '#CD661D',
    'chocolate_4':  '#8B4513',
    'cobalt':  '#3D59AB',
    'cobalt_green':  '#3D9140',
    'cold_grey':  '#808A87',
    'coral':  '#FF7F50',
    'coral_1':  '#FF7256',
    'coral_2':  '#EE6A50',
    'coral_3':  '#CD5B45',
    'coral_4':  '#8B3E2F',
    'cornflower_blue':  '#6495ED',
    'corn_silk_1':  '#FFF8DC',
    'corn_silk_2':  '#EEE8CD',
    'corn_silk_3':  '#CDC8B1',
    'corn_silk_4':  '#8B8878',
    'crimson':  '#DC143C',
    'cyan_2':  '#00E',
    'cyan_3':  '#00C',
    'cyan_4':  '#008',
    'dark_goldenrod':  '#B8860B',
    'dark_goldenrod_1':  '#FFB90F',
    'dark_goldenrod_2':  '#EEAD0E',
    'dark_goldenrod_3':  '#CD950C',
    'dark_goldenrod_4':  '#8B6508',
    'dark_gray':  '#A9A9A9',
    'dark_green':  '#006',
    'dark_khaki':  '#BDB76B',
    'dark_olive_green':  '#556B2F',
    'dark_olive_green_1':  '#CAFF70',
    'dark_olive_green_2':  '#BCEE68',
    'dark_olive_green_3':  '#A2CD5A',
    'dark_olive_green_4':  '#6E8B3D',
    'dark_orange':  '#FF8C00',
    'dark_orange_1':  '#FF7F00',
    'dark_orange_2':  '#EE7600',
    'dark_orange_3':  '#CD6600',
    'dark_orange_4':  '#8B4500',
    'dark_orchid':  '#9932CC',
    'dark_orchid_1':  '#BF3EFF',
    'dark_orchid_2':  '#B23AEE',
    'dark_orchid_3':  '#9A32CD',
    'dark_orchid_4':  '#68228B',
    'dark_salmon':  '#E9967A',
    'dark_sea_green':  '#8FBC8F',
    'dark_sea_green_1':  '#C1FFC1',
    'dark_sea_green_2':  '#B4EEB4',
    'dark_sea_green_3':  '#9BCD9B',
    'dark_sea_green_4':  '#698B69',
    'dark_slate_blue':  '#483D8B',
    'dark_slate_gray':  '#2F4F4F',
    'dark_slate_gray_1':  '#97FFFF',
    'dark_slate_gray_2':  '#8DEEEE',
    'dark_slate_gray_3':  '#79CDCD',
    'dark_slate_gray_4':  '#528B8B',
    'dark_turquoise':  '#00C',
    'dark_violet':  '#9400D3',
    'deep_pink_1':  '#FF1493',
    'deep_pink_2':  '#EE1289',
    'deep_pink_3':  '#CD1076',
    'deep_pink_4':  '#8B0A50',
    'deep_sky_blue_1':  '#00B',
    'deep_sky_blue_2':  '#00B',
    'deep_sky_blue_3':  '#009',
    'deep_sky_blue_4':  '#006',
    'dim_gray':  '#696969',
    'dodger_blue_1':  '#1E90FF',
    'dodger_blue_2':  '#1C86EE',
    'dodger_blue_3':  '#1874CD',
    'dodger_blue_4':  '#104E8B',
    'egg_shell':  '#FCE6C9',
    'emerald_green':  '#00C',
    'firebrick':  '#B22222',
    'firebrick_1':  '#FF3030',
    'firebrick_2':  '#EE2C2C',
    'firebrick_3':  '#CD2626',
    'firebrick_4':  '#8B1A1A',
    'flesh':  '#FF7D40',
    'floral_white':  '#FFFAF0',
    'forest_green':  '#228B22',
    'gains_boro':  '#DCDCDC',
    'ghost_white':  '#F8F8FF',
    'gold_1':  '#FFD700',
    'gold_2':  '#EEC900',
    'gold_3':  '#CDAD00',
    'gold_4':  '#8B7500',
    'goldenrod':  '#DAA520',
    'goldenrod_1':  '#FFC125',
    'goldenrod_2':  '#EEB422',
    'goldenrod_3':  '#CD9B1D',
    'goldenrod_4':  '#8B6914',
    'gray':  '#808080',
    'gray_1':  '#030',
    'gray_10':  '#1A1A1A',
    'gray_11':  '#1C1C1C',
    'gray_12':  '#1F1F1F',
    'gray_13':  '#212121',
    'gray_14':  '#242424',
    'gray_15':  '#262626',
    'gray_16':  '#292929',
    'gray_17':  '#2B2B2B',
    'gray_18':  '#2E2E2E',
    'gray_19':  '#303030',
    'gray_2':  '#050',
    'gray_20':  '#333333',
    'gray_21':  '#363636',
    'gray_22':  '#383838',
    'gray_23':  '#3B3B3B',
    'gray_24':  '#3D3D3D',
    'gray_25':  '#404040',
    'gray_26':  '#424242',
    'gray_27':  '#454545',
    'gray_28':  '#474747',
    'gray_29':  '#4A4A4A',
    'gray_3':  '#080',
    'gray_30':  '#4D4D4D',
    'gray_31':  '#4F4F4F',
    'gray_32':  '#525252',
    'gray_33':  '#545454',
    'gray_34':  '#575757',
    'gray_35':  '#595959',
    'gray_36':  '#5C5C5C',
    'gray_37':  '#5E5E5E',
    'gray_38':  '#616161',
    'gray_39':  '#636363',
    'gray_4':  '#0A0A0A',
    'gray_40':  '#666666',
    'gray_42':  '#6B6B6B',
    'gray_43':  '#6E6E6E',
    'gray_44':  '#707070',
    'gray_45':  '#737373',
    'gray_46':  '#757575',
    'gray_47':  '#787878',
    'gray_48':  '#7A7A7A',
    'gray-49':  '#7D7D7D',
    'gray-5':  '#0D0D0D',
    'gray_50':  '#7F7F7F',
    'gray_51':  '#828282',
    'gray_52':  '#858585',
    'gray_53':  '#878787',
    'gray_54':  '#8A8A8A',
    'gray_55':  '#8C8C8C',
    'gray_56':  '#8F8F8F',
    'gray_57':  '#919191',
    'gray_58':  '#949494',
    'gray_59':  '#969696',
    'gray_6':  '#0F0F0F',
    'gray_60':  '#999999',
    'gray_61':  '#9C9C9C',
    'gray_62':  '#9E9E9E',
    'gray_63':  '#A1A1A1',
    'gray_64':  '#A3A3A3',
    'gray_65':  '#A6A6A6',
    'gray_66':  '#A8A8A8',
    'gray_67':  '#ABABAB',
    'gray_68':  '#ADADAD',
    'gray_69':  '#B0B0B0',
    'gray_7':  '#121212',
    'gray_70':  '#B3B3B3',
    'gray_71':  '#B5B5B5',
    'gray_72':  '#B8B8B8',
    'gray_73':  '#BABABA',
    'gray_74':  '#BDBDBD',
    'gray_75':  '#BFBFBF',
    'gray_76':  '#C2C2C2',
    'gray_77':  '#C4C4C4',
    'gray_78':  '#C7C7C7',
    'gray_79':  '#C9C9C9',
    'gray_8':  '#141414',
    'gray_80':  '#CCCCCC',
    'gray_81':  '#CFCFCF',
    'gray_82':  '#D1D1D1',
    'gray_83':  '#D4D4D4',
    'gray_84':  '#D6D6D6',
    'gray_85':  '#D9D9D9',
    'gray_86':  '#DBDBDB',
    'gray_87':  '#DEDEDE',
    'gray_88':  '#E0E0E0',
    'gray_89':  '#E3E3E3',
    'gray_9':  '#171717',
    'gray_90':  '#E5E5E5',
    'gray_91':  '#E8E8E8',
    'gray_92':  '#EBEBEB',
    'gray_93':  '#EDEDED',
    'gray_94':  '#F0F0F0',
    'gray_95':  '#F2F2F2',
    'gray_97':  '#F7F7F7',
    'gray_98':  '#FAFAFA',
    'gray_99':  '#FCFCFC',
    'green':  '#008',
    'green_1':  '#00F',
    'green_2':  '#00E',
    'green_3':  '#00C',
    'green_4':  '#008',
    'green_yellow':  '#ADFF2F',
    'honeydew_1':  '#F0FFF0',
    'honeydew_2':  '#E0EEE0',
    'honeydew_3':  '#C1CDC1',
    'honeydew_4':  '#838B83',
    'hot_pink':  '#FF69B4',
    'hot_pink_1':  '#FF6EB4',
    'hot_pink_2':  '#EE6AA7',
    'hot_pink_3':  '#CD6090',
    'hot_pink_4':  '#8B3A62',
    'indian_red':  '#CD5C5C',
    'indian_red_1':  '#FF6A6A',
    'indian_red_2':  '#EE6363',
    'indian_red_3':  '#CD5555',
    'indian_red_4':  '#8B3A3A',
    'indigo':  '#4B0082',
    'ivory_1':  '#FFFFF0',
    'ivory_2':  '#EEEEE0',
    'ivory_3':  '#CDCDC1',
    'ivory_4':  '#8B8B83',
    'ivory_black':  '#292421',
    'khaki':  '#F0E68C',
    'khaki_1':  '#FFF68F',
    'khaki_2':  '#EEE685',
    'khaki_3':  '#CDC673',
    'khaki_4':  '#8B864E',
    'lavender':  '#E6E6FA',
    'lavender_blush_1':  '#FFF0F5',
    'lavender_blush_2':  '#EEE0E5',
    'lavender_blush_3':  '#CDC1C5',
    'lavender_blush_4':  '#8B8386',
    'lawn_green':  '#7CFC00',
    'lemon_chiffon_1':  '#FFFACD',
    'lemon_chiffon_2':  '#EEE9BF',
    'lemon_chiffon_3':  '#CDC9A5',
    'lemon_chiffon_4':  '#8B8970',
    'light_blue':  '#ADD8E6',
    'light_blue_1':  '#BFEFFF',
    'light_blue_2':  '#B2DFEE',
    'light_blue_3':  '#9AC0CD',
    'light_blue_4':  '#68838B',
    'light_coral':  '#F08080',
    'light_cyan_1':  '#E0FFFF',
    'light_cyan_2':  '#D1EEEE',
    'light_cyan_3':  '#B4CDCD',
    'light_cyan_4':  '#7A8B8B',
    'light_goldenrod_1':  '#FFEC8B',
    'light_goldenrod_2':  '#EEDC82',
    'light_goldenrod_3':  '#CDBE70',
    'light_goldenrod_4':  '#8B814C',
    'light_goldenrod_yellow':  '#FAFAD2',
    'light_grey':  '#D3D3D3',
    'light_pink':  '#FFB6C1',
    'light_pink_1':  '#FFAEB9',
    'light_pink_2':  '#EEA2AD',
    'light_pink_3':  '#CD8C95',
    'light_pink_4':  '#8B5F65',
    'light_salmon_1':  '#FFA07A',
    'light_salmon_2':  '#EE9572',
    'light_salmon_3':  '#CD8162',
    'light_salmon_4':  '#8B5742',
    'light_sea_green':  '#20B2AA',
    'light_sky_blue':  '#87CEFA',
    'light_sky_blue_1':  '#B0E2FF',
    'light_sky_blue_2':  '#A4D3EE',
    'light_sky_blue_3': '#8DB6CD',
    'light_sky_blue_4':  '#607B8B',
    'light_slate_blue':  '#8470FF',
    'light_slate_gray':  '#778899',
    'light_steel_blue':  '#B0C4DE',
    'light_steel_blue_1':  '#CAE1FF',
    'light_steel_blue_2':  '#BCD2EE',
    'light_steel_blue_3':  '#A2B5CD',
    'light_steel_blue_4':  '#6E7B8B',
    'light_yellow_1':  '#FFFFE0',
    'light _yellow_2':  '#EEEED1',
    'light_ yellow_3':  '#CDCDB4',
    'light_yellow_4':  '#8B8B7A',
    'lime-green':  '#32CD32',
    'linen':  '#FAF0E6',
    'magenta':  '#FF00FF',
    'magenta_2':  '#EE00EE',
    'magenta_3':  '#CD00CD',
    'magenta_4':  '#8B008B',
    'manganese_blue':  '#03A',
    'maroon':  '#800000',
    'maroon_1':  '#FF34B3',
    'maroon_2':  '#EE30A7',
    'maroon_3':  '#CD2990',
    'maroon_4':  '#8B1C62',
    'medium_orchid':  '#BA55D3',
    'medium_orchid_1':  '#E066FF',
    'medium_orchid_2':  '#D15FEE',
    'medium_orchid_3':  '#B452CD',
    'medium_orchid_4':  '#7A378B',
    'medium_purple':  '#9370DB',
    'medium_purple_1':  '#AB82FF',
    'medium_purple_2':  '#9F79EE',
    'medium_purple_3':  '#8968CD',
    'medium_purple_4':  '#5D478B',
    'medium_sea_green':  '#3CB371',
    'medium_slate_blue':  '#7B68EE',
    'medium_spring_green':  '#00F',
    'medium_turquoise':  '#48D1CC',
    'medium_violet_red':  '#C71585',
    'melon':  '#E3A869',
    'midnight_blue':  '#191970',
    'mint':  '#BDFCC9',
    'mint_cream':  '#F5FFFA',
    'misty_rose_1':  '#FFE4E1',
    'misty_rose_2':  '#EED5D2',
    'misty_rose_3':  '#CDB7B5',
    'misty_rose_4':  '#8B7D7B',
    'moccasin':  '#FFE4B5',
    'navajo_white_1':  '#FFDEAD',
    'navajo_white_2':  '#EECFA1',
    'navajo-white_3':  '#CDB38B',
    'navajo_white_4':  '#8B795E',
    'navy':  '#000280',
    'old_lace':  '#FDF5E6',
    'olive':  '#808000',
    'olive_drab':  '#6B8E23',
    'olive_drab_1':  '#C0FF3E',
    'olive_drab_2':  '#B3EE3A',
    'olive_drab_3':  '#9ACD32',
    'olive_drab_4':  '#698B22',
    'orange':  '#FF8000',
    'orange_1':  '#FFA500',
    'orange_2':  '#EE9A00',
    'orange_3':  '#CD8500',
    'orange_4':  '#8B5A00',
    'orange_red_1':  '#FF4500',
    'orange_red_2':  '#EE4000',
    'orange_red_3':  '#CD3700',
    'orange_red-4':  '#8B2500',
    'orchid':  '#DA70D6',
    'orchid_1':  '#FF83FA',
    'orchid_2':  '#EE7AE9',
    'orchid_3':  '#CD69C9',
    'orchid_4':  '#8B4789',
    'pale_goldenrod':  '#EEE8AA',
    'pale_green':  '#98FB98',
    'pale_green_1':  '#9AFF9A',
    'pale_green_2':  '#90EE90',
    'pale_green_3':  '#7CCD7C',
    'pale_green_4':  '#548B54',
    'pale_turquoise_1':  '#BBFFFF',
    'pale_turquoise_2':  '#AEEEEE',
    'pale_turquoise_3':  '#96CDCD',
    'pale_turquoise_4':  '#668B8B',
    'pale_violet_red':  '#DB7093',
    'pale_violet_red_1':  '#FF82AB',
    'pale_violet_red_2':  '#EE799F',
    'pale_violet_red_3':  '#CD6889',
    'pale_violet_red_4':  '#8B475D',
    'papaya_whip':  '#FFEFD5',
    'peach_puff_ 1':  '#FFDAB9',
    'peach_puff_2':  '#EECBAD',
    'peach_puff_3':  '#CDAF95',
    'peach_puff_4':  '#8B7765',
    'peacock':  '#33A1C9',
    'pink':  '#FFC0CB',
    'pink_1':  '#FFB5C5',
    'pink_2':  '#EEA9B8',
    'pink_3':  '#CD919E',
    'pink_4':  '#8B636C',
    'plum':  '#DDA0DD',
    'plum_1':  '#FFBBFF',
    'plum_2':  '#EEAEEE',
    'plum_3':  '#CD96CD',
    'plum_4':  '#8B668B',
    'Powder_blue':  '#B0E0E6',
    'purple':  '#800080',
    'purple_1':  '#9B30FF',
    'purple_2':  '#912CEE',
    'purple_3':  '#7D26CD',
    'purple_4':  '#551A8B',
    'raspberry':  '#872657',
    'raw_sienna':  '#C76114',
    'red_1':  '#FF0000',
    'red_2':  '#EE0000',
    'red_3':  '#CD0000',
    'red_4':  '#8B0000',
    'rosy_brown':  '#BC8F8F',
    'rosy_brown_1':  '#FFC1C1',
    'rosy_brown_2':  '#EEB4B4',
    'rosy_brown_3':  '#CD9B9B',
    'rosy_brown_4':  '#8B6969',
    'royal_blue':  '#4169E1',
    'royal_blue_1':  '#4876FF',
    'royal_blue_2':  '#436EEE',
    'royal_blue_3':  '#3A5FCD',
    'royal_blue_4':  '#27408B',
    'salmon':  '#FA8072',
    'salmon_1':  '#FF8C69',
    'salmon_2':  '#EE8262',
    'salmon_3':  '#CD7054',
    'salmon_4':  '#8B4C39',
    'sandy_brown':  '#F4A460',
    'sap_ green':  '#308014',
    'sea_ green_1':  '#54FF9F',
    'sea_green_2':  '#4EEE94',
    'sea_green_3':  '#43CD80',
    'sea green_ 4':  '#2E8B57',
    'sea _shell_1':  '#FFF5EE',
    'sea_shell _2':  '#EEE5DE',
    'sea _shell_3':  '#CDC5BF',
    'sea _shell_4':  '#8B8682',
    'sepia':  '#5E2612',
    'sgi_beet':  '#8E388E',
    'sgi_bright_gray':  '#C5C1AA',
    'sgi_chartreuse':  '#71C671',
    'sgi_dark_gray':  '#555555',
    'sgi_gray_12':  '#1E1E1E',
    'sgi_gray_16':  '#282828',
    'sgi_gray_32':  '#515151',
    'sgi_gray_36':  '#5B5B5B',
    'sgi_gray_52':  '#848484',
    'sgi_gray_56':  '#8E8E8E',
    'sgi_gray_72':  '#B7B7B7',
    'sgi_gray_76':  '#C1C1C1',
    'sgi_gray_92':  '#EAEAEA',
    'sgi_gray_96':  '#F4F4F4',
    'sgi_light_blue':  '#7D9EC0',
    'sgi_light_gray':  '#AAAAAA',
    'sgi_olive_drab':  '#8E8E38',
    'sgi_salmon':  '#C67171',
    'sgi_slate_blue':  '#7171C6',
    'sgi_teal':  '#388E8E',
    'sienna':  '#A0522D',
    'sienna_1':  '#FF8247',
    'sienna_2':  '#EE7942',
    'sienna_3':  '#CD6839',
    'sienna_4':  '#8B4726',
    'silver':  '#C0C0C0',
    'sky_blue':  '#87CEEB',
    'sky_blue_1':  '#87CEFF',
    'sky_blue_2':  '#7EC0EE',
    'sky_blue_3':  '#6CA6CD',
    'sky_blue_4':  '#4A708B',
    'slate_blue':  '#6A5ACD',
    'slate_blue_1':  '#836FFF',
    'slate_blue_2':  '#7A67EE',
    'slate_blue_3':  '#6959CD',
    'slate_blue_4':  '#473C8B',
    'slate_gray':  '#708090',
    'slate_gray_1':  '#C6E2FF',
    'slate_gray_2':  '#B9D3EE',
    'slate_gray_3':  '#9FB6CD',
    'slate_gray_4':  '#6C7B8B',
    'snow_1':  '#FFFAFA',
    'snow_2':  '#EEE9E9',
    'snow_3':  '#CDC9C9',
    'snow_4':  '#8B8989',
    'spring_green':  '#00F',
    'spring_green_1':  '#00E',
    'spring_green_2':  '#00C',
    'spring_green_3':  '#008',
    'steel_blue':  '#4682B4',
    'steel_blue_1':  '#63B8FF',
    'steel_blue_2':  '#5CACEE',
    'steel_blue_3':  '#4F94CD',
    'steel_blue_4':  '#36648B',
    'tan':  '#D2B48C',
    'tan_1':  '#FFA54F',
    'tan_2':  '#EE9A49',
    'tan_3':  '#CD853F',
    'tan_4':  '#8B5A2B',
    'teal':  '#008',
    'thistle':  '#D8BFD8',
    'thistle_1':  '#FFE1FF',
    'thistle_2':  '#EED2EE',
    'thistle_3':  '#CDB5CD',
    'thistle_4':  '#8B7B8B',
    'tomato_1':  '#FF6347',
    'tomato_2':  '#EE5C42',
    'tomato_3':  '#CD4F39',
    'tomato_4':  '#8B3626',
    'turquoise':  '#40E0D0',
    'turquoise_1':  '#00F',
    'turquoise_2':  '#00E',
    'turquoise_3':  '#00C',
    'turquoise_4':  '#008',
    'turquoise_blue':  '#00C',
    'violet':  '#EE82EE',
    'violet_red':  '#D02090',
    'violet_red_1':  '#FF3E96',
    'violet_red_2':  '#EE3A8C',
    'violet_red_3':  '#CD3278',
    'violet_red_4':  '#8B2252',
    'warm_grey':  '#808069',
    'wheat':  '#F5DEB3',
    'wheat_1':  '#FFE7BA',
    'wheat_2':  '#EED8AE',
    'wheat_3':  '#CDBA96',
    'wheat_4':  '#8B7E66',
    'white':  '#FFFFFF',
    'white_smoke':  '#F5F5F5',
    'yellow_1':  '#FFFF00',
    'yellow_2':  '#EEEE00',
    'yellow_3':  '#CDCD00',
    'yellow_4':  '#8B8B00',
}

color_keys = color_dictionary.keys()
color_hex_codes = color_dictionary.values()
print(color_hex_codes)  # in correct form for buttons bg='#000' same as
# bg=color_hex_codes. This line of code is to prove the format of
# color_hex_codes

# Create a 5x10 (rows x columns) grid of buttons inside the frame
for row_index in range(5):
    frame.rowconfigure(row_index, weight=1)
    for col_index in range(10):
        frame.columnconfigure(col_index, weight=1)
        #  This is where for loop of dictionary I believe
        #  for color_keys, color_hex_codes in color_dictionary.items():
        button = tk.Button(frame, height=1, width=3, bg='#000')  # create a
        # button inside frame using next bg color for each button, needs to 
        # have bg=color_hex_codes
        button.grid(row=row_index, column=col_index, sticky=N+S+E+W)


root.mainloop()

You can make a list of the hex colour values and then index into it:

color_hex_codes = list(color_dictionary.values())

for row_index in range(5):
    frame.rowconfigure(row_index, weight=1)
    for col_index in range(10):
        frame.columnconfigure(col_index, weight=1)
        index = row_index * 10 + col_index
        button = tk.Button(frame, height=1, width=3, bg=color_hex_codes[index])
        button.grid(row=row_index, column=col_index, sticky=N+S+E+W)