HSL(42, 9%, 36%)
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,9%,36%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(42, 9%, 36%) | color: hsl(42, 9%, 36%) | |
| HEX | #645F54 | color: #645F54 | |
| RGB | rgb(100, 95, 84) | color: rgb(100, 95, 84) | |
| CMYK | cmyk(0%, 5%, 16%, 61%) | — | |
| HSV | hsv(41, 16%, 39%) | — | |
| HWB | hwb(41 33% 61%) | color: hwb(41 33% 61%) | |
| OKLCH | oklch(0.4868 0.0182 86.47) | color: oklch(0.4868 0.0182 86.47) | |
| Lab | lab(40.47 -0.11 7.01) | color: lab(40.47 -0.11 7.01) | |
| LCH | lch(40.47 7.01 90.9) | color: lch(40.47 7.01 90.9) |
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)
#626257 — rgb(98, 98, 87)
Deuteranopia (Green-blind)
#626357 — rgb(98, 99, 87)
Tritanopia (Blue-blind)
#645959 — rgb(100, 89, 89)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(42, 9%, 36%);
text
color: hsl(42, 9%, 36%);
border
border: 2px solid hsl(42, 9%, 36%);
gradient light
background: linear-gradient(to right, hsl(42, 9%, 56%), hsl(42, 9%, 36%));
gradient dark
background: linear-gradient(to right, hsl(42, 9%, 36%), hsl(42, 9%, 16%))
hex
background-color: #645F54;
tailwind
bg-[hsl(42,9%,36%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(42, 9%, 36%, 0.4);
css variable
--color-primary: hsl(42, 9%, 36%);
Related Colors
Use Cases for Grayish Gray
Frequently Asked Questions
What are all the color codes for HSL(42, 9%, 36%)?
HEX: #645F54 | RGB: rgb(100, 95, 84) | CMYK: 0%, 5%, 16%, 61% | HSV: 41°, 16%, 39%. Copy any format from the conversion table above.
What colors go well with #645F54?
The complementary color is HSL(222, 9%, 36%). 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, 9%, 36%) in CSS?
As HSL: color: hsl(42, 9%, 36%); — As HEX: color: #645F54; — As RGB: color: rgb(100, 95, 84); — Tailwind CSS: bg-[hsl(42,9%,36%)] — CSS variable: --color-primary: hsl(42, 9%, 36%);