HSL(342, 7%, 51%)
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(342,7%,51%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(342, 7%, 51%) | color: hsl(342, 7%, 51%) | |
| HEX | #8B797F | color: #8B797F | |
| RGB | rgb(139, 121, 127) | color: rgb(139, 121, 127) | |
| CMYK | cmyk(0%, 13%, 9%, 45%) | — | |
| HSV | hsv(340, 13%, 55%) | — | |
| HWB | hwb(340 48% 45%) | color: hwb(340 48% 45%) | |
| OKLCH | oklch(0.5946 0.0238 355.71) | color: oklch(0.5946 0.0238 355.71) | |
| Lab | lab(52.62 8.02 -0.72) | color: lab(52.62 8.02 -0.72) | |
| LCH | lch(52.62 8.05 354.87) | color: lch(52.62 8.05 354.87) |
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)
#83837E — rgb(131, 131, 126)
Deuteranopia (Green-blind)
#84867D — rgb(132, 134, 125)
Tritanopia (Blue-blind)
#8A7C7C — rgb(138, 124, 124)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(342, 7%, 51%);
text
color: hsl(342, 7%, 51%);
border
border: 2px solid hsl(342, 7%, 51%);
gradient light
background: linear-gradient(to right, hsl(342, 7%, 71%), hsl(342, 7%, 51%));
gradient dark
background: linear-gradient(to right, hsl(342, 7%, 51%), hsl(342, 7%, 31%))
hex
background-color: #8B797F;
tailwind
bg-[hsl(342,7%,51%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(342, 7%, 51%, 0.4);
css variable
--color-primary: hsl(342, 7%, 51%);
Related Colors
Use Cases for Grayish Gray
Frequently Asked Questions
What are all the color codes for HSL(342, 7%, 51%)?
HEX: #8B797F | RGB: rgb(139, 121, 127) | CMYK: 0%, 13%, 9%, 45% | HSV: 340°, 13%, 55%. Copy any format from the conversion table above.
What colors go well with #8B797F?
The complementary color is HSL(162, 7%, 51%). For a triadic harmony, use hues 342°, 102°, and 222°. For analogous combinations, try hues 312° and 12°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(342, 7%, 51%) in CSS?
As HSL: color: hsl(342, 7%, 51%); — As HEX: color: #8B797F; — As RGB: color: rgb(139, 121, 127); — Tailwind CSS: bg-[hsl(342,7%,51%)] — CSS variable: --color-primary: hsl(342, 7%, 51%);