HSL(31, 6%, 46%)
Grayish Gray — Gray color
Adjust Color
Color Information
Color Name
Grayish Gray
Color Family
Gray
Warm / Cool
🔴 Warm
Temperature
N/A
CSS Class
bg-[hsl(31,6%,46%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(31, 6%, 46%) | color: hsl(31, 6%, 46%) | |
| HEX | #7C766E | color: #7C766E | |
| RGB | rgb(124, 118, 110) | color: rgb(124, 118, 110) | |
| CMYK | cmyk(0%, 5%, 11%, 51%) | — | |
| HSV | hsv(34, 11%, 49%) | — | |
| HWB | hwb(34 44% 51%) | color: hwb(34 44% 51%) | |
| OKLCH | oklch(0.5688 0.0142 75.28) | color: oklch(0.5688 0.0142 75.28) | |
| Lab | lab(49.94 0.79 5.23) | color: lab(49.94 0.79 5.23) | |
| LCH | lch(49.94 5.29 81.41) | color: lch(49.94 5.29 81.41) |
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: black
Color Blindness Simulation
Protanopia (Red-blind)
#797970 — rgb(121, 121, 112)
Deuteranopia (Green-blind)
#7A7A70 — rgb(122, 122, 112)
Tritanopia (Blue-blind)
#7C7172 — rgb(124, 113, 114)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(31, 6%, 46%);
text
color: hsl(31, 6%, 46%);
border
border: 2px solid hsl(31, 6%, 46%);
gradient light
background: linear-gradient(to right, hsl(31, 6%, 66%), hsl(31, 6%, 46%));
gradient dark
background: linear-gradient(to right, hsl(31, 6%, 46%), hsl(31, 6%, 26%))
hex
background-color: #7C766E;
tailwind
bg-[hsl(31,6%,46%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(31, 6%, 46%, 0.4);
css variable
--color-primary: hsl(31, 6%, 46%);
Related Colors
Use Cases for Grayish Gray
Frequently Asked Questions
What are all the color codes for HSL(31, 6%, 46%)?
HEX: #7C766E | RGB: rgb(124, 118, 110) | CMYK: 0%, 5%, 11%, 51% | HSV: 34°, 11%, 49%. Copy any format from the conversion table above.
What colors go well with #7C766E?
The complementary color is HSL(211, 6%, 46%). For a triadic harmony, use hues 31°, 151°, and 271°. For analogous combinations, try hues 1° and 61°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(31, 6%, 46%) in CSS?
As HSL: color: hsl(31, 6%, 46%); — As HEX: color: #7C766E; — As RGB: color: rgb(124, 118, 110); — Tailwind CSS: bg-[hsl(31,6%,46%)] — CSS variable: --color-primary: hsl(31, 6%, 46%);