diff --git a/dxf_input.py b/dxf_input.py
index a1e4d654ee282f2df5d06ab17bae3a3a61eba421..12c148d4acdd55e72558fce2a17b63bdfe704268 100644
--- a/dxf_input.py
+++ b/dxf_input.py
@@ -1657,6 +1657,8 @@ class DxfInput(inkex.InputExtension):
vals[line[0]].append(line[1])
if line[0] == "8": # 8:layer
val8 = line[1]
+ if line[0] == "62": # color
+ vals[line[0]].append(int(line[1]))
if line[0] == "70": # flag
flag70 = int(line[1])
else:
diff --git a/tests/data/refs/dxf_input__test_r12__dxf.out b/tests/data/refs/dxf_input__test_r12__dxf.out
index 1c5daa554d42924a87d479a829af9c3efc4b180c..577f92524cacbe20fea0b876833ff1034be7ea47 100644
--- a/tests/data/refs/dxf_input__test_r12__dxf.out
+++ b/tests/data/refs/dxf_input__test_r12__dxf.out
@@ -1,2 +1,2 @@
+ test_r12.dxf - scale = 1.000000, origin = (0.000000, 0.000000), method = manual
\ No newline at end of file