HEX Color Conversion

Hex Color Code #AF022F — RGB & HSL Conversions

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

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

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

The RGB code for #AF022F is computed as rgb(175, 2, 47). Web designers using HSL values will find it at a hue of 344°, saturation of 98%, and lightness index of 35%, representing a highly vivid, intense, and brilliant shade.

CMYK print code settings for #AF022F

For print design setups, the CMYK values for the #AF022F color code are Cyan: 0%, Magenta: 99%, Yellow: 73%, and Black: 31%. These neutral color boundaries serve as solid structural backgrounds, layouts, and typography grids.

Red Channel 175
Green Channel 2
Blue Channel 47
Luminance 0.094

HEX #AF022F Color Space Conversions

Click to copy format
HEX Color Code #AF022F
RGB (Red Green Blue) rgb(175, 2, 47)
HSL (Hue Sat Light) hsl(344°, 98%, 35%)
CMYK (Commercial Print) cmyk(0%, 99%, 73%, 31%)
HSV / HSB Values hsv(344°, 99%, 69%)
Decimal Color Code 11469359
CSS Custom Variable --color-hex: #AF022F;
Tailwind CSS Utility bg-[#AF022F]

Contrast & Accessibility (WCAG 2.1) Check

White Text on Background

White text readability test with #AF022F

Small body copy preview

Black Text on Background

Black text readability test with #AF022F

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 #AF022F */
--color-hex: #AF022F;
--color-rgb: rgb(175, 2, 47);
--color-hsl: hsl(344deg, 98%, 35%);

Adjacent HEX Color Codes

Copied!