HSL(240, 7%, 40%)
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(240,7%,40%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(240, 7%, 40%) | color: hsl(240, 7%, 40%) | |
| HEX | #5F5F6D | color: #5F5F6D | |
| RGB | rgb(95, 95, 109) | color: rgb(95, 95, 109) | |
| CMYK | cmyk(13%, 13%, 0%, 57%) | — | |
| HSV | hsv(240, 13%, 43%) | — | |
| HWB | hwb(240 37% 57%) | color: hwb(240 37% 57%) | |
| OKLCH | oklch(0.4905 0.0222 285.55) | color: oklch(0.4905 0.0222 285.55) | |
| Lab | lab(40.77 3.11 -7.92) | color: lab(40.77 3.11 -7.92) | |
| LCH | lch(40.77 8.51 291.44) | color: lch(40.77 8.51 291.44) |
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)
#5F5F6A — rgb(95, 95, 106)
Deuteranopia (Green-blind)
#5F5F69 — rgb(95, 95, 105)
Tritanopia (Blue-blind)
#5F6766 — rgb(95, 103, 102)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(240, 7%, 40%);
text
color: hsl(240, 7%, 40%);
border
border: 2px solid hsl(240, 7%, 40%);
gradient light
background: linear-gradient(to right, hsl(240, 7%, 60%), hsl(240, 7%, 40%));
gradient dark
background: linear-gradient(to right, hsl(240, 7%, 40%), hsl(240, 7%, 20%))
hex
background-color: #5F5F6D;
tailwind
bg-[hsl(240,7%,40%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(240, 7%, 40%, 0.4);
css variable
--color-primary: hsl(240, 7%, 40%);
Related Colors
Use Cases for Grayish Gray
Frequently Asked Questions
What are all the color codes for HSL(240, 7%, 40%)?
HEX: #5F5F6D | RGB: rgb(95, 95, 109) | CMYK: 13%, 13%, 0%, 57% | HSV: 240°, 13%, 43%. Copy any format from the conversion table above.
What colors go well with #5F5F6D?
The complementary color is HSL(60, 7%, 40%). For a triadic harmony, use hues 240°, 0°, and 120°. For analogous combinations, try hues 210° and 270°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(240, 7%, 40%) in CSS?
As HSL: color: hsl(240, 7%, 40%); — As HEX: color: #5F5F6D; — As RGB: color: rgb(95, 95, 109); — Tailwind CSS: bg-[hsl(240,7%,40%)] — CSS variable: --color-primary: hsl(240, 7%, 40%);