HSL(242, 8%, 28%)
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(242,8%,28%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(242, 8%, 28%) | color: hsl(242, 8%, 28%) | |
| HEX | #42424D | color: #42424D | |
| RGB | rgb(66, 66, 77) | color: rgb(66, 66, 77) | |
| CMYK | cmyk(14%, 14%, 0%, 70%) | — | |
| HSV | hsv(240, 14%, 30%) | — | |
| HWB | hwb(240 26% 70%) | color: hwb(240 26% 70%) | |
| OKLCH | oklch(0.3833 0.0186 285.49) | color: oklch(0.3833 0.0186 285.49) | |
| Lab | lab(28.35 2.61 -6.62) | color: lab(28.35 2.61 -6.62) | |
| LCH | lch(28.35 7.12 291.52) | color: lch(28.35 7.12 291.52) |
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)
#42424A — rgb(66, 66, 74)
Deuteranopia (Green-blind)
#42424A — rgb(66, 66, 74)
Tritanopia (Blue-blind)
#424848 — rgb(66, 72, 72)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(242, 8%, 28%);
text
color: hsl(242, 8%, 28%);
border
border: 2px solid hsl(242, 8%, 28%);
gradient light
background: linear-gradient(to right, hsl(242, 8%, 48%), hsl(242, 8%, 28%));
gradient dark
background: linear-gradient(to right, hsl(242, 8%, 28%), hsl(242, 8%, 8%))
hex
background-color: #42424D;
tailwind
bg-[hsl(242,8%,28%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(242, 8%, 28%, 0.4);
css variable
--color-primary: hsl(242, 8%, 28%);
Related Colors
Use Cases for Grayish Gray
Frequently Asked Questions
What are all the color codes for HSL(242, 8%, 28%)?
HEX: #42424D | RGB: rgb(66, 66, 77) | CMYK: 14%, 14%, 0%, 70% | HSV: 240°, 14%, 30%. Copy any format from the conversion table above.
What colors go well with #42424D?
The complementary color is HSL(62, 8%, 28%). For a triadic harmony, use hues 242°, 2°, and 122°. For analogous combinations, try hues 212° and 272°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(242, 8%, 28%) in CSS?
As HSL: color: hsl(242, 8%, 28%); — As HEX: color: #42424D; — As RGB: color: rgb(66, 66, 77); — Tailwind CSS: bg-[hsl(242,8%,28%)] — CSS variable: --color-primary: hsl(242, 8%, 28%);