HSL(42, 3%, 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(42,3%,46%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(42, 3%, 46%) | color: hsl(42, 3%, 46%) | |
| HEX | #797772 | color: #797772 | |
| RGB | rgb(121, 119, 114) | color: rgb(121, 119, 114) | |
| CMYK | cmyk(0%, 2%, 6%, 53%) | — | |
| HSV | hsv(43, 6%, 47%) | — | |
| HWB | hwb(43 44% 53%) | color: hwb(43 44% 53%) | |
| OKLCH | oklch(0.5695 0.0079 88.68) | color: oklch(0.5695 0.0079 88.68) | |
| Lab | lab(50.07 -0.22 3.02) | color: lab(50.07 -0.22 3.02) | |
| LCH | lch(50.07 3.03 94.17) | color: lch(50.07 3.03 94.17) |
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)
#787873 — rgb(120, 120, 115)
Deuteranopia (Green-blind)
#787874 — rgb(120, 120, 116)
Tritanopia (Blue-blind)
#797474 — rgb(121, 116, 116)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(42, 3%, 46%);
text
color: hsl(42, 3%, 46%);
border
border: 2px solid hsl(42, 3%, 46%);
gradient light
background: linear-gradient(to right, hsl(42, 3%, 66%), hsl(42, 3%, 46%));
gradient dark
background: linear-gradient(to right, hsl(42, 3%, 46%), hsl(42, 3%, 26%))
hex
background-color: #797772;
tailwind
bg-[hsl(42,3%,46%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(42, 3%, 46%, 0.4);
css variable
--color-primary: hsl(42, 3%, 46%);
Related Colors
Use Cases for Grayish Gray
Frequently Asked Questions
What are all the color codes for HSL(42, 3%, 46%)?
HEX: #797772 | RGB: rgb(121, 119, 114) | CMYK: 0%, 2%, 6%, 53% | HSV: 43°, 6%, 47%. Copy any format from the conversion table above.
What colors go well with #797772?
The complementary color is HSL(222, 3%, 46%). For a triadic harmony, use hues 42°, 162°, and 282°. For analogous combinations, try hues 12° and 72°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(42, 3%, 46%) in CSS?
As HSL: color: hsl(42, 3%, 46%); — As HEX: color: #797772; — As RGB: color: rgb(121, 119, 114); — Tailwind CSS: bg-[hsl(42,3%,46%)] — CSS variable: --color-primary: hsl(42, 3%, 46%);