HEX Color Conversion

Hex Color Code #004C2A — RGB & HSL Conversions

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

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

What are the RGB and HSL conversion values for #004C2A?

In the digital sRGB color space, the hex value #004C2A is converted to RGB values of Red: 0, Green: 76, and Blue: 42. When analyzed under the HSL model, its coordinates correspond to hue angle 153°, 100% saturation, and 15% lightness. This makes it visually a dark, rich color with a highly vivid, intense, and brilliant shade.

CMYK print code settings for #004C2A

When converting #004C2A for CMYK printing, the color separation consists of 100% Cyan, 0% Magenta, 45% Yellow, and 70% key/black. Green-heavy spectrums are associated with organic elements and growth, making them highly effective for eco-conscious portals and wellness brands.

Red Channel 0
Green Channel 76
Blue Channel 42
Luminance 0.053

HEX #004C2A Color Space Conversions

Click to copy format
HEX Color Code #004C2A
RGB (Red Green Blue) rgb(0, 76, 42)
HSL (Hue Sat Light) hsl(153°, 100%, 15%)
CMYK (Commercial Print) cmyk(100%, 0%, 45%, 70%)
HSV / HSB Values hsv(153°, 100%, 30%)
Decimal Color Code 19498
CSS Custom Variable --color-hex: #004C2A;
Tailwind CSS Utility bg-[#004C2A]

Contrast & Accessibility (WCAG 2.1) Check

White Text on Background

White text readability test with #004C2A

Small body copy preview

Black Text on Background

Black text readability test with #004C2A

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 #004C2A */
--color-hex: #004C2A;
--color-rgb: rgb(0, 76, 42);
--color-hsl: hsl(153deg, 100%, 15%);

Adjacent HEX Color Codes

Copied!