HSL(2, 7%, 58%)
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(2,7%,58%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(2, 7%, 58%) | color: hsl(2, 7%, 58%) | |
| HEX | #9B8D8C | color: #9B8D8C | |
| RGB | rgb(155, 141, 140) | color: rgb(155, 141, 140) | |
| CMYK | cmyk(0%, 9%, 10%, 39%) | — | |
| HSV | hsv(4, 10%, 61%) | — | |
| HWB | hwb(4 55% 39%) | color: hwb(4 55% 39%) | |
| OKLCH | oklch(0.6554 0.0169 22.52) | color: oklch(0.6554 0.0169 22.52) | |
| Lab | lab(59.81 5.04 2.43) | color: lab(59.81 5.04 2.43) | |
| LCH | lch(59.81 5.6 25.74) | color: lch(59.81 5.6 25.74) |
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)
#95958C — rgb(149, 149, 140)
Deuteranopia (Green-blind)
#96978C — rgb(150, 151, 140)
Tritanopia (Blue-blind)
#9A8C8C — rgb(154, 140, 140)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(2, 7%, 58%);
text
color: hsl(2, 7%, 58%);
border
border: 2px solid hsl(2, 7%, 58%);
gradient light
background: linear-gradient(to right, hsl(2, 7%, 78%), hsl(2, 7%, 58%));
gradient dark
background: linear-gradient(to right, hsl(2, 7%, 58%), hsl(2, 7%, 38%))
hex
background-color: #9B8D8C;
tailwind
bg-[hsl(2,7%,58%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(2, 7%, 58%, 0.4);
css variable
--color-primary: hsl(2, 7%, 58%);
Related Colors
Use Cases for Grayish Gray
Frequently Asked Questions
What are all the color codes for HSL(2, 7%, 58%)?
HEX: #9B8D8C | RGB: rgb(155, 141, 140) | CMYK: 0%, 9%, 10%, 39% | HSV: 4°, 10%, 61%. Copy any format from the conversion table above.
What colors go well with #9B8D8C?
The complementary color is HSL(182, 7%, 58%). For a triadic harmony, use hues 2°, 122°, and 242°. For analogous combinations, try hues 332° and 32°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(2, 7%, 58%) in CSS?
As HSL: color: hsl(2, 7%, 58%); — As HEX: color: #9B8D8C; — As RGB: color: rgb(155, 141, 140); — Tailwind CSS: bg-[hsl(2,7%,58%)] — CSS variable: --color-primary: hsl(2, 7%, 58%);