HSL(72, 5%, 31%)

Grayish Gray — Gray color

Adjust Color

Color Information

Color Name

Grayish Gray

Color Family

Gray

Warm / Cool

🔵 Cool

Temperature

N/A

CSS Class

bg-[hsl(72,5%,31%)]

Color Conversions

Format Value CSS Usage
HSL hsl(72, 5%, 31%) color: hsl(72, 5%, 31%)
HEX #51534B color: #51534B
RGB rgb(81, 83, 75) color: rgb(81, 83, 75)
CMYK cmyk(2%, 0%, 10%, 67%)
HSV hsv(75, 10%, 33%)
HWB hwb(75 30% 67%) color: hwb(75 30% 67%)
OKLCH oklch(0.4378 0.0131 118.35) color: oklch(0.4378 0.0131 118.35)
Lab lab(34.89 -2.48 4.41) color: lab(34.89 -2.48 4.41)
LCH lch(34.89 5.06 119.35) color: lch(34.89 5.06 119.35)

Color Theory

Complementary

Triadic

Analogous

Tetradic (Square)

Split-Complementary

Accessibility (WCAG)

White text on color

Black text on color

Color on white bg

Colored text

Contrast Ratios

vs White 7.81:1
vs Black 2.69:1

AA Normal (4.5:1)

on White: PASS ✓ on Black: FAIL ✗

AA Large (3:1)

on White: PASS ✓ on Black: FAIL ✗

AAA Normal (7:1)

on White: PASS ✓

Best text on this color: white

Color Blindness Simulation

Protanopia (Red-blind)

#52524D — rgb(82, 82, 77)

Deuteranopia (Green-blind)

#52524D — rgb(82, 82, 77)

Tritanopia (Blue-blind)

#514E4F — rgb(81, 78, 79)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(72, 5%, 31%);

text

color: hsl(72, 5%, 31%);

border

border: 2px solid hsl(72, 5%, 31%);

gradient light

background: linear-gradient(to right, hsl(72, 5%, 51%), hsl(72, 5%, 31%));

gradient dark

background: linear-gradient(to right, hsl(72, 5%, 31%), hsl(72, 5%, 11%))

hex

background-color: #51534B;

tailwind

bg-[hsl(72,5%,31%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(72, 5%, 31%, 0.4);

css variable

--color-primary: hsl(72, 5%, 31%);

Related Colors

Use Cases for Grayish Gray

Neutral backgrounds Body text Borders Secondary buttons Disabled states

Frequently Asked Questions

What are all the color codes for HSL(72, 5%, 31%)?

HEX: #51534B | RGB: rgb(81, 83, 75) | CMYK: 2%, 0%, 10%, 67% | HSV: 75°, 10%, 33%. Copy any format from the conversion table above.

What colors go well with #51534B?

The complementary color is HSL(252, 5%, 31%). For a triadic harmony, use hues 72°, 192°, and 312°. For analogous combinations, try hues 42° and 102°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(72, 5%, 31%) in CSS?

As HSL: color: hsl(72, 5%, 31%); — As HEX: color: #51534B; — As RGB: color: rgb(81, 83, 75); — Tailwind CSS: bg-[hsl(72,5%,31%)] — CSS variable: --color-primary: hsl(72, 5%, 31%);