HSL(82, 9%, 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(82,9%,31%)]

Color Conversions

Format Value CSS Usage
HSL hsl(82, 9%, 31%) color: hsl(82, 9%, 31%)
HEX #515648 color: #515648
RGB rgb(81, 86, 72) color: rgb(81, 86, 72)
CMYK cmyk(6%, 0%, 16%, 66%)
HSV hsv(81, 16%, 34%)
HWB hwb(81 29% 66%) color: hwb(81 29% 66%)
OKLCH oklch(0.4443 0.0231 123.34) color: oklch(0.4443 0.0231 123.34)
Lab lab(35.74 -4.89 7.49) color: lab(35.74 -4.89 7.49)
LCH lch(35.74 8.94 123.14) color: lch(35.74 8.94 123.14)

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.57:1
vs Black 2.77: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)

#53534B — rgb(83, 83, 75)

Deuteranopia (Green-blind)

#53534C — rgb(83, 83, 76)

Tritanopia (Blue-blind)

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

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(82, 9%, 31%);

text

color: hsl(82, 9%, 31%);

border

border: 2px solid hsl(82, 9%, 31%);

gradient light

background: linear-gradient(to right, hsl(82, 9%, 51%), hsl(82, 9%, 31%));

gradient dark

background: linear-gradient(to right, hsl(82, 9%, 31%), hsl(82, 9%, 11%))

hex

background-color: #515648;

tailwind

bg-[hsl(82,9%,31%)]

box shadow

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

css variable

--color-primary: hsl(82, 9%, 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(82, 9%, 31%)?

HEX: #515648 | RGB: rgb(81, 86, 72) | CMYK: 6%, 0%, 16%, 66% | HSV: 81°, 16%, 34%. Copy any format from the conversion table above.

What colors go well with #515648?

The complementary color is HSL(262, 9%, 31%). For a triadic harmony, use hues 82°, 202°, and 322°. For analogous combinations, try hues 52° and 112°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(82, 9%, 31%) in CSS?

As HSL: color: hsl(82, 9%, 31%); — As HEX: color: #515648; — As RGB: color: rgb(81, 86, 72); — Tailwind CSS: bg-[hsl(82,9%,31%)] — CSS variable: --color-primary: hsl(82, 9%, 31%);