HEX Color Conversion

Hex Color Code #A4B42A — RGB & HSL Conversions

How to use the #A4B42A color code in HTML & CSS?

To apply the hex color #A4B42A in web design, set the color property inside your CSS stylesheet. For example, adding background-color: #A4B42A; will paint elements in this warm undertone shade. In modern CSS structures, you can configure it as a custom variable --color-hex: #A4B42A; or utilize it directly in Tailwind CSS via arbitrary utility values like bg-[#A4B42A].

What are the RGB and HSL conversion values for #A4B42A?

In the digital sRGB color space, the hex value #A4B42A is converted to RGB values of Red: 164, Green: 180, and Blue: 42. When analyzed under the HSL model, its coordinates correspond to hue angle 67°, 62% saturation, and 44% lightness. This makes it visually a balanced medium tone with a balanced, moderate saturation.

CMYK print code settings for #A4B42A

When converting #A4B42A for CMYK printing, the color separation consists of 9% Cyan, 0% Magenta, 77% Yellow, and 29% key/black. Yellow shades are excellent warning triggers and call-to-actions, radiating optimism, energy, and caution.

Red Channel 164
Green Channel 180
Blue Channel 42
Luminance 0.407

HEX #A4B42A Color Space Conversions

Click to copy format
HEX Color Code #A4B42A
RGB (Red Green Blue) rgb(164, 180, 42)
HSL (Hue Sat Light) hsl(67°, 62%, 44%)
CMYK (Commercial Print) cmyk(9%, 0%, 77%, 29%)
HSV / HSB Values hsv(67°, 77%, 71%)
Decimal Color Code 10794026
CSS Custom Variable --color-hex: #A4B42A;
Tailwind CSS Utility bg-[#A4B42A]

Contrast & Accessibility (WCAG 2.1) Check

White Text on Background

White text readability test with #A4B42A

Small body copy preview

Black Text on Background

Black text readability test with #A4B42A

Small body copy preview

Complementary & Analogous Harmonies

Perfect matching color schemes for your designs

Shades & Tints Generator Matrix

Copy shade hex values instantly

Darker Shades (Adding Black)

Lighter Tints (Adding White)

{ } CSS Custom Properties (Variables)

Copy CSS Styles
/* CSS Custom Properties for color #A4B42A */
--color-hex: #A4B42A;
--color-rgb: rgb(164, 180, 42);
--color-hsl: hsl(67deg, 62%, 44%);

Adjacent HEX Color Codes

Copied!