Cowboy Hat Face icon
openmoji:cowboy-hat-face
The Cowboy Hat Face icon (openmoji:cowboy-hat-face) is a free SVG icon from the OpenMoji set. It is drawn on a 72 × 72 grid. OpenMoji icons are released under the CC BY-SA 4.0 license, which allows use in personal and commercial projects as long as you credit the author and share changes to the icons under the same license. Copy it as SVG, JSX, Vue or Svelte code, or download the SVG file.
- Icon set
- OpenMoji
- Author
- OpenMoji
- License
- CC-BY-SA-4.0
- Size
- 72 × 72
- Category
- Smileys Emotion
- Tags
- cowboyhat, hatface, cowboyhatface
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="72" height="72" viewBox="0 0 72 72"><circle cx="36" cy="38" r="24" fill="#fcea2b"/><path fill="#6a462f" d="M36 23.315c9.267-.129 15.335-2.457 15.335-2.457a23.05 23.05 0 0 1 5.975 8.472s10.595-8.361 2.295-15.105c0 0-4.006-3.86-10.036 1.646c0 0-3.886 3.665-13.569 3.706c-9.683-.04-13.57-3.706-13.57-3.706c-6.028-5.505-10.035-1.646-10.035-1.646c-8.3 6.743 2.295 15.105 2.295 15.105a23.05 23.05 0 0 1 5.976-8.472S26.733 23.187 36 23.315"/><path fill="#6a462f" d="M36 19.577c6.052-.025 9.767-1.428 11.757-2.505c0 0-1.634-.57-1.39-2.782c.072-.657.353-1.627.71-2.549c.639-1.65.194-2.968-4.114-5.134c0 0-2.082-1.041-2.82-1.274c-1.083-.343-2.934-.62-4.143.818c-1.209-1.439-3.06-1.16-4.143-.818c-.738.233-2.82 1.274-2.82 1.274c-4.308 2.166-4.753 3.483-4.114 5.134c.357.922.638 1.892.71 2.55c.245 2.21-1.39 2.781-1.39 2.781c1.99 1.077 5.705 2.48 11.757 2.505"/><path fill="#fff" d="M50.595 43.64a11.6 11.6 0 0 1-.87 4.49c-12.49 3.03-25.43.34-27.49-.13a11.4 11.4 0 0 1-.83-4.36h.11s14.8 3.59 28.89.07z"/><path fill="#ea5a47" d="M49.725 48.13c-1.79 4.27-6.35 7.23-13.69 7.23c-7.41 0-12.03-3.03-13.8-7.36c2.06.47 15 3.16 27.49.13"/><ellipse cx="28.068" cy="32.818" rx="3" ry="5.404"/><ellipse cx="43.932" cy="32.822" rx="3" ry="5.404"/><path fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="2" d="M58.438 32.925A23 23 0 0 1 59 38c0 12.703-10.297 23-23 23S13 50.703 13 38c0-1.744.194-3.442.562-5.075M36 23.315c9.267-.129 15.335-2.457 15.335-2.457a23.05 23.05 0 0 1 5.975 8.472s10.595-8.361 2.295-15.105c0 0-4.006-3.86-10.036 1.646c0 0-3.886 3.665-13.569 3.706c-9.683-.04-13.57-3.706-13.57-3.706c-6.028-5.505-10.035-1.646-10.035-1.646c-8.3 6.743 2.295 15.105 2.295 15.105a23.05 23.05 0 0 1 5.976-8.472S26.733 23.187 36 23.315"/><path fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="2" d="M36 19.577c6.052-.025 9.767-1.428 11.757-2.505c0 0-1.634-.57-1.39-2.782c.072-.657.353-1.627.71-2.549c.639-1.65.194-2.968-4.114-5.134c0 0-2.082-1.041-2.82-1.274c-1.083-.343-2.934-.62-4.143.818c-1.209-1.439-3.06-1.16-4.143-.818c-.738.233-2.82 1.274-2.82 1.274c-4.308 2.166-4.753 3.483-4.114 5.134c.357.922.638 1.892.71 2.55c.245 2.21-1.39 2.781-1.39 2.781c1.99 1.077 5.705 2.48 11.757 2.505"/><path fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M50.595 43.64a11.6 11.6 0 0 1-.87 4.49c-12.49 3.03-25.43.34-27.49-.13a11.4 11.4 0 0 1-.83-4.36h.11s14.8 3.59 28.89.07z"/><path fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M49.725 48.13c-1.79 4.27-6.35 7.23-13.69 7.23c-7.41 0-12.03-3.03-13.8-7.36c2.06.47 15 3.16 27.49.13"/></svg>How to use the Cowboy Hat Face icon
React
import { Icon } from "@iconify/react";
<Icon icon="openmoji:cowboy-hat-face" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="openmoji:cowboy-hat-face" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="openmoji:cowboy-hat-face" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[openmoji--cowboy-hat-face]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/openmoji -->
<div class="i-openmoji:cowboy-hat-face"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="openmoji:cowboy-hat-face"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/openmoji/cowboy-hat-face.svg" alt="Cowboy Hat Face icon" width="24" height="24">Cowboy Hat Face icon in other icon sets
Cowboy Hat Face icon FAQ
Is the Cowboy Hat Face icon free for commercial use?
Yes. OpenMoji icons are released under the CC BY-SA 4.0 license, which allows use in personal and commercial projects as long as you credit the author and share changes to the icons under the same license.
How do I use the Cowboy Hat Face icon in React?
Install @iconify/react and render <Icon icon="openmoji:cowboy-hat-face" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Cowboy Hat Face icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/openmoji/cowboy-hat-face.svg" alt="Cowboy Hat Face icon">, or paste the SVG code inline to style it with CSS.