diff --git a/io_mesh_atomic/pdb_import.py b/io_mesh_atomic/pdb_import.py
index c3b0c1506a7b16db4f61b1a301ff4215a2bca292..33df4adcb429865430ef5067fe6af692d3ee6e76 100644
--- a/io_mesh_atomic/pdb_import.py
+++ b/io_mesh_atomic/pdb_import.py
@@ -1343,6 +1343,7 @@ def import_pdb(Ball_type,
     # (e.g. hydrogen)
     for atom_type in atom_all_types_list:
         material = bpy.data.materials.new(atom_type[1])
+        material.diffuse_color = atom_type[2]
         material.use_nodes = True
         mat_P_BSDF = material.node_tree.nodes['Principled BSDF']
         mat_P_BSDF.inputs['Base Color'].default_value = atom_type[2]
diff --git a/io_mesh_atomic/xyz_import.py b/io_mesh_atomic/xyz_import.py
index 3cd7185c64df853775712c222adeea5632f4b3b1..940a2ff1c3846c1f9259f7bfc357458cfebb3442 100644
--- a/io_mesh_atomic/xyz_import.py
+++ b/io_mesh_atomic/xyz_import.py
@@ -486,6 +486,7 @@ def import_xyz(Ball_type,
         # Take the first atom
         atom = atoms_of_one_type[0]
         material = bpy.data.materials.new(atom.name)
+        material.diffuse_color = atom.color
         material.use_nodes = True
         mat_P_BSDF = material.node_tree.nodes['Principled BSDF']
         mat_P_BSDF.inputs['Base Color'].default_value = atom.color