Porphyrins are a widespread group of pigments in nature which are believed to contribute to shell colors in mollusks. Previous studies have provided candidate genes for porphyrin shell coloration, however, the linkage analysis between functional genes and porphyrin pigmentation remains unclear in mollusks. RNA interference is a powerful molecular tool for analyzing the loss of functions of genes in vivo and alter gene expression. In this study, we used unicellular alga Platymonas subcordiformis and Nitzschia closterium f. minutissima as vectors to feed oysters with Escherichia coli strain HT115 engineered to express double-stranded RNAs targeting specific genes involved in porphyrin synthesis. A strain of Crassostrea gigas with orange shell was used to target key haem pathway genes expression using the aforementioned approach. We show here that feeding the oysters with E. coli, containing dsRNA targeting pigmentation genes, can cause changes in the color of the newly deposited shell. For example, the RNAi knockdown of CgALAS and CgPBGD resulted in the loss of uroporphyrin pigmentation from the shell due to the accumulation of the pigment in the oyster’s mantle. The study probed the crucial role of ALAS and PBGD genes potential functions of uroporphyrin production and shell color pigmentation in C. gigas.