<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: John Rapvideo</title>
    <description>The latest articles on DEV Community by John Rapvideo (@john_rapvideo_6c6c6849058).</description>
    <link>https://dev.to/john_rapvideo_6c6c6849058</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4211610%2F813d1db9-0304-49fb-a24a-1a49bbd8829b.png</url>
      <title>DEV Community: John Rapvideo</title>
      <link>https://dev.to/john_rapvideo_6c6c6849058</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/john_rapvideo_6c6c6849058"/>
    <language>en</language>
    <item>
      <title>Seasonal color analysis as a color-science problem (undertone, value, chroma, contrast)</title>
      <dc:creator>John Rapvideo</dc:creator>
      <pubDate>Tue, 27 Oct 2026 19:10:20 +0000</pubDate>
      <link>https://dev.to/john_rapvideo_6c6c6849058/seasonal-color-analysis-as-a-color-science-problem-undertone-value-chroma-contrast-2nlh</link>
      <guid>https://dev.to/john_rapvideo_6c6c6849058/seasonal-color-analysis-as-a-color-science-problem-undertone-value-chroma-contrast-2nlh</guid>
      <description>&lt;p&gt;Seasonal color analysis is usually explained with fabric drapes and words like "warm" and "soft". If you're a developer, it's easier to think about it as a small color-science problem. Disclosure up front: I'm part of the team that built DoColorAnalysis, a free online &lt;a href="https://docoloranalysis.com/" rel="noopener noreferrer"&gt;color analysis&lt;/a&gt; tool, so this is the mental model we found useful, not a sales pitch.&lt;/p&gt;

&lt;h2&gt;
  
  
  The four variables
&lt;/h2&gt;

&lt;p&gt;Most 12-season systems reduce a person's coloring to four properties:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Undertone (hue direction)&lt;/strong&gt;: is the skin leaning yellow/golden (warm), pink/blue (cool), or in between (neutral)?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Value (lightness)&lt;/strong&gt;: how light or dark the overall coloring is.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Chroma (saturation)&lt;/strong&gt;: are the hair, skin and eye colors clear and saturated, or muted and greyed?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Contrast&lt;/strong&gt;: the lightness difference between hair, skin and eyes.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The seasons are just regions in that space. Spring is warm and clear, Summer is cool and soft, Autumn is warm and muted, Winter is cool and high-contrast. The 12-season version splits each into three sub-types depending on which property dominates (for example Light Spring vs Warm Spring vs Bright Spring).&lt;/p&gt;

&lt;h2&gt;
  
  
  Why CIELAB beats RGB here
&lt;/h2&gt;

&lt;p&gt;RGB values from a photo mix lightness and color together, so they are a poor fit. CIELAB (or its cylindrical form, LCh) separates them:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;L*&lt;/code&gt; maps nicely to &lt;strong&gt;value&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;C*&lt;/code&gt; (chroma, &lt;code&gt;sqrt(a*² + b*²)&lt;/code&gt;) maps to &lt;strong&gt;chroma&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;the hue angle &lt;code&gt;h&lt;/code&gt; and the sign of &lt;code&gt;b*&lt;/code&gt; (yellow vs blue) give a hint about &lt;strong&gt;undertone&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;math&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;lab_to_lch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;L&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;b&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;C&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;sqrt&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;b&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;b&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;h&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;degrees&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;atan2&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;b&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="mi"&gt;360&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;L&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;C&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;h&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Contrast can then be approximated as the spread of &lt;code&gt;L*&lt;/code&gt; between sampled hair, skin and eye regions.&lt;/p&gt;

&lt;h2&gt;
  
  
  The hard part is the photo, not the math
&lt;/h2&gt;

&lt;p&gt;Lighting shifts everything. Warm indoor bulbs push skin toward yellow, phone filters raise saturation, and shadows lower &lt;code&gt;L*&lt;/code&gt;. That's why every serious guide asks for a front-facing selfie in daylight from a window, no filter and little makeup. White-balancing against something neutral in the frame helps a lot.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it without code
&lt;/h2&gt;

&lt;p&gt;If you want to check your own season before writing any code, the free 12-question color analysis test on &lt;a href="https://docoloranalysis.com/" rel="noopener noreferrer"&gt;docoloranalysis.com&lt;/a&gt; asks about veins, tanning, gold vs silver and your natural hair and eyes, and returns a likely season plus a runner-up. It runs in the browser and needs no photo or account.&lt;/p&gt;

&lt;p&gt;Curious whether others have tried modelling seasons with k-means or a simple classifier on LCh features. Happy to compare notes in the comments.&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>python</category>
      <category>design</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
