HEX Color Conversion

Hex Color Code #A5312A — RGB & HSL Conversions

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

For developers, implementing the #A5312A color code involves declaring it in your styles. In stylesheet designs, use color: #A5312A; for text alignment. If you are developing with utility-first layouts, you can invoke it in Tailwind as text-[#A5312A] or custom configure it in your theme files.

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

The RGB code for #A5312A is computed as rgb(165, 49, 42). Web designers using HSL values will find it at a hue of 3°, saturation of 59%, and lightness index of 41%, representing a balanced, moderate saturation.

CMYK print code settings for #A5312A

For print design setups, the CMYK values for the #A5312A color code are Cyan: 0%, Magenta: 70%, Yellow: 75%, and Black: 35%. Given its red-channel dominance, this color is a powerful visual stimulator often deployed in banners, call-to-actions, and warning components.

Red Channel 165
Green Channel 49
Blue Channel 42
Luminance 0.104

HEX #A5312A Color Space Conversions

Click to copy format
HEX Color Code #A5312A
RGB (Red Green Blue) rgb(165, 49, 42)
HSL (Hue Sat Light) hsl(3°, 59%, 41%)
CMYK (Commercial Print) cmyk(0%, 70%, 75%, 35%)
HSV / HSB Values hsv(3°, 75%, 65%)
Decimal Color Code 10826026
CSS Custom Variable --color-hex: #A5312A;
Tailwind CSS Utility bg-[#A5312A]

Contrast & Accessibility (WCAG 2.1) Check

White Text on Background

White text readability test with #A5312A

Small body copy preview

Black Text on Background

Black text readability test with #A5312A

Small body copy preview

Complementary & Analogous Harmonies

Computed dynamically

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 #A5312A */
--color-hex: #A5312A;
--color-rgb: rgb(165, 49, 42);
--color-hsl: hsl(3deg, 59%, 41%);

Adjacent HEX Color Codes

Copied!