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!
3月のイチオシ実験!
- 押し花を作ろう!:梅や桜の花の押し花を作ってみましょう。特別なケースに入れると、長く保存できて、しおりにもなります。
テレビ番組・科学監修等のお知らせ
- 「月曜から夜更かし」(日本テレビ)にて科学監修・出演しました。
- 2月27日放送予定「チコちゃんに叱られる」(NHK)の科学監修しました。
書籍のお知らせ
- 1/27 『見えない力と遊ぼう!電気・磁石・熱の実験』(工学社)を執筆しました。
- サクセス15 2月号にて「浸透圧」に関する科学記事を執筆しました。
- 『大人のための高校物理復習帳』(講談社)…一般向けに日常の物理について公式を元に紐解きました。特設サイトでは実験を多数紹介しています。※増刷がかかり6刷となりました(2026/02/01)
- 『きめる!共通テスト 物理基礎 改訂版』(学研)… 高校物理の参考書です。イラストを多くしてイメージが持てるように描きました。授業についていけない、物理が苦手、そんな生徒におすすめです。特設サイトはこちら。

講師・ショー・その他お知らせ
- 3/20(金) 日本理科教育学会オンライン全国大会2026「慣性の法則の概念形成を目指した探究的な学びの実践」について発表します。B会場 第3セッション: 学習指導・教材(中学校)③ 11:20-12:20
- 7/18(土) 教員向け実験講習会「ナリカカサイエンスアカデミー」の講師をします。お会いしましょう。
- 10/10(土) 秘密兵器「帯電ガン」が炸裂!ビリビリ!ドキドキ!静電気サイエンスショー@千葉市科学フェスタ(午後予定)
- 各種SNS X(Twitter)/instagram/Facebook/BlueSky/Threads
Explore
- 楽しい実験…お子さんと一緒に夢中になれるイチオシの科学実験を多数紹介しています。また、高校物理の理解を深めるための動画教材も用意しました。
- 理科の教材… 理科教師をバックアップ!授業の質を高め、準備を効率化するための選りすぐりの教材を紹介しています。
- Youtube…科学実験等の動画を配信しています。
- 科学ラジオ …科学トピックをほぼ毎日配信中!AI技術を駆使して作成した「耳で楽しむ科学」をお届けします。
- 講演 …全国各地で実験講習会・サイエンスショー等を行っています。
- About …「科学のネタ帳」のコンセプトや、運営者である桑子研のプロフィール・想いをまとめています。
- お問い合わせ …実験教室のご依頼、執筆・講演の相談、科学監修等はこちらのフォームからお寄せください。



