HEX Color Conversion

Hex Color Code #A51A2A — RGB & HSL Conversions

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

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

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

The RGB code for #A51A2A is computed as rgb(165, 26, 42). Web designers using HSL values will find it at a hue of 353°, saturation of 73%, and lightness index of 37%, representing a highly vivid, intense, and brilliant shade.

CMYK print code settings for #A51A2A

For print design setups, the CMYK values for the #A51A2A color code are Cyan: 0%, Magenta: 84%, 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 26
Blue Channel 42
Luminance 0.089

HEX #A51A2A Color Space Conversions

Click to copy format
HEX Color Code #A51A2A
RGB (Red Green Blue) rgb(165, 26, 42)
HSL (Hue Sat Light) hsl(353°, 73%, 37%)
CMYK (Commercial Print) cmyk(0%, 84%, 75%, 35%)
HSV / HSB Values hsv(353°, 84%, 65%)
Decimal Color Code 10820138
CSS Custom Variable --color-hex: #A51A2A;
Tailwind CSS Utility bg-[#A51A2A]

Contrast & Accessibility (WCAG 2.1) Check

White Text on Background

White text readability test with #A51A2A

Small body copy preview

Black Text on Background

Black text readability test with #A51A2A

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 #A51A2A */
--color-hex: #A51A2A;
--color-rgb: rgb(165, 26, 42);
--color-hsl: hsl(353deg, 73%, 37%);

Adjacent HEX Color Codes

Copied!