Unmask the Secrets of Vegetable Colors! The Amazing “Rainbow Test Tubes” Experiment with Purple Cabbage
I’m Ken Kuwako, your science trainer. Every day is an experiment!
Take a look at the red cabbage in your local grocery store. It might look like just another vegetable, but did you know it’s actually hiding a secret source of magic ink? Today, I’m going to show you how to use this humble cabbage to trap a breathtaking rainbow inside a test tube. Get ready for a colorful drama that will leave both kids and adults absolutely spellbound!
Create a Rainbow with Red Cabbage!
In the world of science, red cabbage is famous for being an elite natural indicator. Like a chameleon, it has the incredible ability to change its color instantly depending on whether a liquid is acidic or alkaline. By tapping into this power, anyone can easily create a liquid rainbow.
What You’ll Need:
Red cabbage
Sodium bicarbonate (Baking soda)
Diluted hydrochloric acid
Beaker
Graduated cylinder
How to Do It:
First, chop the red cabbage into small pieces and place them in a beaker. Add just enough water to cover the cabbage and heat it over a gas burner. As the water boils, the pigment will dissolve, turning the liquid a deep, vibrant purple. Once the color is rich enough, turn off the heat, strain out the cabbage, and pour your purple extract into the graduated cylinder.
Next, add about 5g of sodium bicarbonate (baking soda). Watch closely—the purple liquid will instantly shift to a bright green! This transformation is a guaranteed “wow” moment every single time.
Now, use a pipette to slowly and gently add the diluted hydrochloric acid. Be careful here: if you add it too quickly, the reaction might cause it to foam over, so take your time. You’ll see the surface of the liquid begin to blush a brilliant red.
Finally, take a glass stirring rod and stir the liquid very, very slowly. If you do it right, you’ll see green at the bottom, purple in the middle, and red at the top. A beautiful, shimmering gradient will appear right before your eyes—it’s a rainbow in a bottle!

The Secret Behind the Colors
This “magic” is actually a chemical reaction involving a pigment called anthocyanin found in many plants. Anthocyanin has a fascinating quirk: its molecular structure changes depending on the pH level (the acidity or alkalinity) of its environment.
Neutral (Original state): Purple
Alkaline (With baking soda): Green or Yellow
Acidic (With hydrochloric acid): Red
The reason the rainbow appears at the end is that the liquids of different pH levels have settled into distinct layers within the cylinder.
The key to success is stirring gently. If you stir too vigorously, the layers will mix completely, and the whole thing will turn a uniform acidic red. “Slow and steady” is the scientific secret to preserving your beautiful rainbow! This same pigment, anthocyanin, is responsible for the blue-purple of blueberries and the fiery red of autumn leaves. Science is the hidden artist behind the most beautiful colors in nature.
Inquiries and Requests
Bringing the wonder of science closer to you! I share easy-to-follow tips and fun experiments you can try at home. Feel free to explore more:
My “Science Notebook” series is now a book! Details here
Learn more about Ken Kuwako here
For work requests (writing, lectures, workshops, TV supervision, etc.), click here – Follow me on X (formerly Twitter) for the latest updates!
Watch experiment videos on the Science Material Channel!
5月のイチオシ実験!
キーンと冷えるドライアイス!気温が上がってくるこの時期・ドライアイスを使った昇華・凝結・等速度直線運動の実験はいかが?

液体ゼロ!ドライアイスが消えるまでの3時間を科学する(昇華・凝結・等速度直線運動)
テレビ番組監修・イベント等のお知らせ
- 4月30日(木)「THE突破ファイル」(日本テレビ)の科学監修を担当しました。
- 5月8日(金)理科教育ニュースを担当しました。
- 6月14日(日) 千葉大学インスタレーション「探究」にて講師を務めます
- 6月26日(金) 千葉大学の公開研究会(中学理科について授業公開予定)
- 7月18日(土) 教員向け実験講習会「ナリカカサイエンスアカデミー」の講師をします。お会いしましょう。
書籍のお知らせ
- 『大人のための高校物理復習帳』(講談社)…一般向けに日常の物理について公式を元に紐解きました。特設サイトでは実験を多数紹介しています。※増刷がかかり6刷となりました(2026/02/01)

- 『きめる!共通テスト 物理基礎 改訂版』(学研)… 高校物理の参考書です。イラストを多くしてイメージが持てるように描きました。授業についていけない、物理が苦手、そんな生徒におすすめです。特設サイトはこちら。

各種SNS(更新情報をお届け!)
X(Twitter)/instagram/Facebook(日本語)
Explore
- 楽しい実験…お子さんと一緒に夢中になれるイチオシの科学実験を多数紹介しています。また、高校物理の理解を深めるための動画教材も用意しました。
- 理科の教材… 理科教師をバックアップ!授業の質を高め、準備を効率化するための選りすぐりの教材を紹介しています。
- Youtube…科学実験等の動画を配信しています。
- 科学ラジオ …科学トピックをほぼ毎日配信中!AI技術を駆使して作成した「耳で楽しむ科学」をお届けします。
- 講演 …全国各地で実験講習会・サイエンスショー等を行っています。
- About …「科学のネタ帳」のコンセプトや、運営者である桑子研のプロフィール・想いをまとめています。
- お問い合わせ …実験教室のご依頼、執筆・講演の相談、科学監修等はこちらのフォームからお寄せください。


