HSL(242, 5%, 62%)
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,5%,62%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(242, 5%, 62%) | color: hsl(242, 5%, 62%) | |
| HEX | #9A99A3 | color: #9A99A3 | |
| RGB | rgb(154, 153, 163) | color: rgb(154, 153, 163) | |
| CMYK | cmyk(6%, 6%, 0%, 36%) | — | |
| HSV | hsv(246, 6%, 64%) | — | |
| HWB | hwb(246 60% 36%) | color: hwb(246 60% 36%) | |
| OKLCH | oklch(0.687 0.0145 290.61) | color: oklch(0.687 0.0145 290.61) | |
| Lab | lab(63.59 2.33 -5.09) | color: lab(63.59 2.33 -5.09) | |
| LCH | lch(63.59 5.6 294.6) | color: lch(63.59 5.6 294.6) |
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)
#9A9AA1 — rgb(154, 154, 161)
Deuteranopia (Green-blind)
#9A9AA0 — rgb(154, 154, 160)
Tritanopia (Blue-blind)
#9A9F9E — rgb(154, 159, 158)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(242, 5%, 62%);
text
color: hsl(242, 5%, 62%);
border
border: 2px solid hsl(242, 5%, 62%);
gradient light
background: linear-gradient(to right, hsl(242, 5%, 82%), hsl(242, 5%, 62%));
gradient dark
background: linear-gradient(to right, hsl(242, 5%, 62%), hsl(242, 5%, 42%))
hex
background-color: #9A99A3;
tailwind
bg-[hsl(242,5%,62%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(242, 5%, 62%, 0.4);
css variable
--color-primary: hsl(242, 5%, 62%);
Related Colors
Use Cases for Grayish Gray
Frequently Asked Questions
What are all the color codes for HSL(242, 5%, 62%)?
HEX: #9A99A3 | RGB: rgb(154, 153, 163) | CMYK: 6%, 6%, 0%, 36% | HSV: 246°, 6%, 64%. Copy any format from the conversion table above.
What colors go well with #9A99A3?
The complementary color is HSL(62, 5%, 62%). 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, 5%, 62%) in CSS?
As HSL: color: hsl(242, 5%, 62%); — As HEX: color: #9A99A3; — As RGB: color: rgb(154, 153, 163); — Tailwind CSS: bg-[hsl(242,5%,62%)] — CSS variable: --color-primary: hsl(242, 5%, 62%);