HSL(122, 4%, 50%)
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(122,4%,50%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(122, 4%, 50%) | color: hsl(122, 4%, 50%) | |
| HEX | #7A857B | color: #7A857B | |
| RGB | rgb(122, 133, 123) | color: rgb(122, 133, 123) | |
| CMYK | cmyk(8%, 0%, 8%, 48%) | — | |
| HSV | hsv(125, 8%, 52%) | — | |
| HWB | hwb(125 48% 48%) | color: hwb(125 48% 48%) | |
| OKLCH | oklch(0.6046 0.0197 147.95) | color: oklch(0.6046 0.0197 147.95) | |
| Lab | lab(54.39 -6.06 4.01) | color: lab(54.39 -6.06 4.01) | |
| LCH | lch(54.39 7.27 146.51) | color: lch(54.39 7.27 146.51) |
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)
#7F7F7D — rgb(127, 127, 125)
Deuteranopia (Green-blind)
#7E7D7E — rgb(126, 125, 126)
Tritanopia (Blue-blind)
#7B7F80 — rgb(123, 127, 128)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(122, 4%, 50%);
text
color: hsl(122, 4%, 50%);
border
border: 2px solid hsl(122, 4%, 50%);
gradient light
background: linear-gradient(to right, hsl(122, 4%, 70%), hsl(122, 4%, 50%));
gradient dark
background: linear-gradient(to right, hsl(122, 4%, 50%), hsl(122, 4%, 30%))
hex
background-color: #7A857B;
tailwind
bg-[hsl(122,4%,50%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(122, 4%, 50%, 0.4);
css variable
--color-primary: hsl(122, 4%, 50%);
Related Colors
Use Cases for Grayish Gray
Frequently Asked Questions
What are all the color codes for HSL(122, 4%, 50%)?
HEX: #7A857B | RGB: rgb(122, 133, 123) | CMYK: 8%, 0%, 8%, 48% | HSV: 125°, 8%, 52%. Copy any format from the conversion table above.
What colors go well with #7A857B?
The complementary color is HSL(302, 4%, 50%). For a triadic harmony, use hues 122°, 242°, and 2°. For analogous combinations, try hues 92° and 152°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(122, 4%, 50%) in CSS?
As HSL: color: hsl(122, 4%, 50%); — As HEX: color: #7A857B; — As RGB: color: rgb(122, 133, 123); — Tailwind CSS: bg-[hsl(122,4%,50%)] — CSS variable: --color-primary: hsl(122, 4%, 50%);