HSL(127, 7%, 51%)
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(127,7%,51%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(127, 7%, 51%) | color: hsl(127, 7%, 51%) | |
| HEX | #798B7B | color: #798B7B | |
| RGB | rgb(121, 139, 123) | color: rgb(121, 139, 123) | |
| CMYK | cmyk(13%, 0%, 12%, 45%) | — | |
| HSV | hsv(127, 13%, 55%) | — | |
| HWB | hwb(127 48% 45%) | color: hwb(127 48% 45%) | |
| OKLCH | oklch(0.6175 0.0316 148.34) | color: oklch(0.6175 0.0316 148.34) | |
| Lab | lab(56.05 -9.76 6.38) | color: lab(56.05 -9.76 6.38) | |
| LCH | lch(56.05 11.66 146.83) | color: lch(56.05 11.66 146.83) |
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)
#81817F — rgb(129, 129, 127)
Deuteranopia (Green-blind)
#807E80 — rgb(128, 126, 128)
Tritanopia (Blue-blind)
#7A8283 — rgb(122, 130, 131)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(127, 7%, 51%);
text
color: hsl(127, 7%, 51%);
border
border: 2px solid hsl(127, 7%, 51%);
gradient light
background: linear-gradient(to right, hsl(127, 7%, 71%), hsl(127, 7%, 51%));
gradient dark
background: linear-gradient(to right, hsl(127, 7%, 51%), hsl(127, 7%, 31%))
hex
background-color: #798B7B;
tailwind
bg-[hsl(127,7%,51%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(127, 7%, 51%, 0.4);
css variable
--color-primary: hsl(127, 7%, 51%);
Related Colors
Use Cases for Grayish Gray
Frequently Asked Questions
What are all the color codes for HSL(127, 7%, 51%)?
HEX: #798B7B | RGB: rgb(121, 139, 123) | CMYK: 13%, 0%, 12%, 45% | HSV: 127°, 13%, 55%. Copy any format from the conversion table above.
What colors go well with #798B7B?
The complementary color is HSL(307, 7%, 51%). For a triadic harmony, use hues 127°, 247°, and 7°. For analogous combinations, try hues 97° and 157°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(127, 7%, 51%) in CSS?
As HSL: color: hsl(127, 7%, 51%); — As HEX: color: #798B7B; — As RGB: color: rgb(121, 139, 123); — Tailwind CSS: bg-[hsl(127,7%,51%)] — CSS variable: --color-primary: hsl(127, 7%, 51%);