HSL(242, 9%, 52%)
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,9%,52%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(242, 9%, 52%) | color: hsl(242, 9%, 52%) | |
| HEX | #7A7A90 | color: #7A7A90 | |
| RGB | rgb(122, 122, 144) | color: rgb(122, 122, 144) | |
| CMYK | cmyk(15%, 15%, 0%, 44%) | — | |
| HSV | hsv(240, 15%, 56%) | — | |
| HWB | hwb(240 48% 44%) | color: hwb(240 48% 44%) | |
| OKLCH | oklch(0.5872 0.0334 285.33) | color: oklch(0.5872 0.0334 285.33) | |
| Lab | lab(51.92 4.74 -11.88) | color: lab(51.92 4.74 -11.88) | |
| LCH | lch(51.92 12.79 291.75) | color: lch(51.92 12.79 291.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: black
Color Blindness Simulation
Protanopia (Red-blind)
#7A7A8B — rgb(122, 122, 139)
Deuteranopia (Green-blind)
#7A7A89 — rgb(122, 122, 137)
Tritanopia (Blue-blind)
#7A8686 — rgb(122, 134, 134)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(242, 9%, 52%);
text
color: hsl(242, 9%, 52%);
border
border: 2px solid hsl(242, 9%, 52%);
gradient light
background: linear-gradient(to right, hsl(242, 9%, 72%), hsl(242, 9%, 52%));
gradient dark
background: linear-gradient(to right, hsl(242, 9%, 52%), hsl(242, 9%, 32%))
hex
background-color: #7A7A90;
tailwind
bg-[hsl(242,9%,52%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(242, 9%, 52%, 0.4);
css variable
--color-primary: hsl(242, 9%, 52%);
Related Colors
Use Cases for Grayish Gray
Frequently Asked Questions
What are all the color codes for HSL(242, 9%, 52%)?
HEX: #7A7A90 | RGB: rgb(122, 122, 144) | CMYK: 15%, 15%, 0%, 44% | HSV: 240°, 15%, 56%. Copy any format from the conversion table above.
What colors go well with #7A7A90?
The complementary color is HSL(62, 9%, 52%). 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, 9%, 52%) in CSS?
As HSL: color: hsl(242, 9%, 52%); — As HEX: color: #7A7A90; — As RGB: color: rgb(122, 122, 144); — Tailwind CSS: bg-[hsl(242,9%,52%)] — CSS variable: --color-primary: hsl(242, 9%, 52%);