HSL(97, 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(97,9%,31%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(97, 9%, 31%) | color: hsl(97, 9%, 31%) | |
| HEX | #4D5648 | color: #4D5648 | |
| RGB | rgb(77, 86, 72) | color: rgb(77, 86, 72) | |
| CMYK | cmyk(10%, 0%, 16%, 66%) | — | |
| HSV | hsv(99, 16%, 34%) | — | |
| HWB | hwb(99 29% 66%) | color: hwb(99 29% 66%) | |
| OKLCH | oklch(0.4407 0.0252 134.31) | color: oklch(0.4407 0.0252 134.31) | |
| Lab | lab(35.4 -6.55 6.97) | color: lab(35.4 -6.55 6.97) | |
| LCH | lch(35.4 9.56 133.22) | color: lch(35.4 9.56 133.22) |
Color Theory
Accessibility (WCAG)
White text on color
Black text on color
Colored text
Contrast Ratios
AA Normal (4.5:1)
AA Large (3:1)
AAA Normal (7:1)
Best text on this color: white
Color Blindness Simulation
Protanopia (Red-blind)
#51514B — rgb(81, 81, 75)
Deuteranopia (Green-blind)
#50504C — rgb(80, 80, 76)
Tritanopia (Blue-blind)
#4D4E4F — rgb(77, 78, 79)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(97, 9%, 31%);
text
color: hsl(97, 9%, 31%);
border
border: 2px solid hsl(97, 9%, 31%);
gradient light
background: linear-gradient(to right, hsl(97, 9%, 51%), hsl(97, 9%, 31%));
gradient dark
background: linear-gradient(to right, hsl(97, 9%, 31%), hsl(97, 9%, 11%))
hex
background-color: #4D5648;
tailwind
bg-[hsl(97,9%,31%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(97, 9%, 31%, 0.4);
css variable
--color-primary: hsl(97, 9%, 31%);
Related Colors
Use Cases for Grayish Gray
Frequently Asked Questions
What are all the color codes for HSL(97, 9%, 31%)?
HEX: #4D5648 | RGB: rgb(77, 86, 72) | CMYK: 10%, 0%, 16%, 66% | HSV: 99°, 16%, 34%. Copy any format from the conversion table above.
What colors go well with #4D5648?
The complementary color is HSL(277, 9%, 31%). For a triadic harmony, use hues 97°, 217°, and 337°. For analogous combinations, try hues 67° and 127°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(97, 9%, 31%) in CSS?
As HSL: color: hsl(97, 9%, 31%); — As HEX: color: #4D5648; — As RGB: color: rgb(77, 86, 72); — Tailwind CSS: bg-[hsl(97,9%,31%)] — CSS variable: --color-primary: hsl(97, 9%, 31%);