HSL(277, 5%, 31%)
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(277,5%,31%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(277, 5%, 31%) | color: hsl(277, 5%, 31%) | |
| HEX | #504B53 | color: #504B53 | |
| RGB | rgb(80, 75, 83) | color: rgb(80, 75, 83) | |
| CMYK | cmyk(4%, 10%, 0%, 67%) | — | |
| HSV | hsv(278, 10%, 33%) | — | |
| HWB | hwb(278 30% 67%) | color: hwb(278 30% 67%) | |
| OKLCH | oklch(0.4205 0.0145 313.07) | color: oklch(0.4205 0.0145 313.07) | |
| Lab | lab(32.62 3.8 -3.98) | color: lab(32.62 3.8 -3.98) | |
| LCH | lch(32.62 5.5 313.67) | color: lch(32.62 5.5 313.67) |
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)
#4E4E51 — rgb(78, 78, 81)
Deuteranopia (Green-blind)
#4E4F51 — rgb(78, 79, 81)
Tritanopia (Blue-blind)
#50504F — rgb(80, 80, 79)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(277, 5%, 31%);
text
color: hsl(277, 5%, 31%);
border
border: 2px solid hsl(277, 5%, 31%);
gradient light
background: linear-gradient(to right, hsl(277, 5%, 51%), hsl(277, 5%, 31%));
gradient dark
background: linear-gradient(to right, hsl(277, 5%, 31%), hsl(277, 5%, 11%))
hex
background-color: #504B53;
tailwind
bg-[hsl(277,5%,31%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(277, 5%, 31%, 0.4);
css variable
--color-primary: hsl(277, 5%, 31%);
Related Colors
Use Cases for Grayish Gray
Frequently Asked Questions
What are all the color codes for HSL(277, 5%, 31%)?
HEX: #504B53 | RGB: rgb(80, 75, 83) | CMYK: 4%, 10%, 0%, 67% | HSV: 278°, 10%, 33%. Copy any format from the conversion table above.
What colors go well with #504B53?
The complementary color is HSL(97, 5%, 31%). For a triadic harmony, use hues 277°, 37°, and 157°. For analogous combinations, try hues 247° and 307°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(277, 5%, 31%) in CSS?
As HSL: color: hsl(277, 5%, 31%); — As HEX: color: #504B53; — As RGB: color: rgb(80, 75, 83); — Tailwind CSS: bg-[hsl(277,5%,31%)] — CSS variable: --color-primary: hsl(277, 5%, 31%);