HSL(142, 7%, 38%)
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(142,7%,38%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(142, 7%, 38%) | color: hsl(142, 7%, 38%) | |
| HEX | #5A685F | color: #5A685F | |
| RGB | rgb(90, 104, 95) | color: rgb(90, 104, 95) | |
| CMYK | cmyk(13%, 0%, 9%, 59%) | — | |
| HSV | hsv(141, 13%, 41%) | — | |
| HWB | hwb(141 36% 59%) | color: hwb(141 36% 59%) | |
| OKLCH | oklch(0.5026 0.0221 157.33) | color: oklch(0.5026 0.0221 157.33) | |
| Lab | lab(42.61 -7.28 3.28) | color: lab(42.61 -7.28 3.28) | |
| LCH | lch(42.61 7.98 155.75) | color: lch(42.61 7.98 155.75) |
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)
#606061 — rgb(96, 96, 97)
Deuteranopia (Green-blind)
#5F5E62 — rgb(95, 94, 98)
Tritanopia (Blue-blind)
#5B6363 — rgb(91, 99, 99)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(142, 7%, 38%);
text
color: hsl(142, 7%, 38%);
border
border: 2px solid hsl(142, 7%, 38%);
gradient light
background: linear-gradient(to right, hsl(142, 7%, 58%), hsl(142, 7%, 38%));
gradient dark
background: linear-gradient(to right, hsl(142, 7%, 38%), hsl(142, 7%, 18%))
hex
background-color: #5A685F;
tailwind
bg-[hsl(142,7%,38%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(142, 7%, 38%, 0.4);
css variable
--color-primary: hsl(142, 7%, 38%);
Related Colors
Use Cases for Grayish Gray
Frequently Asked Questions
What are all the color codes for HSL(142, 7%, 38%)?
HEX: #5A685F | RGB: rgb(90, 104, 95) | CMYK: 13%, 0%, 9%, 59% | HSV: 141°, 13%, 41%. Copy any format from the conversion table above.
What colors go well with #5A685F?
The complementary color is HSL(322, 7%, 38%). For a triadic harmony, use hues 142°, 262°, and 22°. For analogous combinations, try hues 112° and 172°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(142, 7%, 38%) in CSS?
As HSL: color: hsl(142, 7%, 38%); — As HEX: color: #5A685F; — As RGB: color: rgb(90, 104, 95); — Tailwind CSS: bg-[hsl(142,7%,38%)] — CSS variable: --color-primary: hsl(142, 7%, 38%);