Python Kivy language color property
<p>Does Kivy language support hex color values such as </p>

<blockquote>
  <p><strong>#F05F40</strong></p>
</blockquote>

<p>Thanks very much in advance! </p>

<p>Kivy has <code>utils</code> module with <a href="https://kivy.org/docs/api-kivy.utils.html#kivy.utils.get_color_from_hex" rel="nofollow">get_color_from_hex</a> function that do job:</p>

<pre><code>#:import utils kivy.utils


&lt;Widget&gt;:
    canvas.before:
        Color:
            rgb: utils.get_color_from_hex('#F05F40')
        Rectangle:
            pos: self.pos
            size: self.size
</code></pre>

<p>Note, that you should <a href="https://kivy.org/docs/guide/lang.html#special-syntaxes" rel="nofollow">import</a> module in kvlang.</p>

python kivy