Add the habanero peppers to a food processor and pulse them until they are very finely chopped. Do not overdo it or you’ll wind up with a puree.
Scoop out the peppers and add to a large pan.
Add sugar, vinegar, lemon juice, and salt.
Bring to a boil then reduce heat to low and simmer for about 10 minutes.
Return heat to high and bring mixture to a rolling boil. Stir in pectin and boil for 1 minute, stirring constantly. Remove from heat.
If using food coloring, add it now and stir.
Ladle jam into sterilized jars and cover.
Process jars in a boiling hot water bath for 10 minutes.
Remove and let cool overnight.