HSL(187, 5%, 21%)
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(187,5%,21%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(187, 5%, 21%) | color: hsl(187, 5%, 21%) | |
| HEX | #333838 | color: #333838 | |
| RGB | rgb(51, 56, 56) | color: rgb(51, 56, 56) | |
| CMYK | cmyk(9%, 0%, 0%, 78%) | — | |
| HSV | hsv(180, 9%, 22%) | — | |
| HWB | hwb(180 20% 78%) | color: hwb(180 20% 78%) | |
| OKLCH | oklch(0.3359 0.0068 196.83) | color: oklch(0.3359 0.0068 196.83) | |
| Lab | lab(23.06 -2.12 -0.73) | color: lab(23.06 -2.12 -0.73) | |
| LCH | lch(23.06 2.24 199) | color: lch(23.06 2.24 199) |
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)
#353538 — rgb(53, 53, 56)
Deuteranopia (Green-blind)
#353538 — rgb(53, 53, 56)
Tritanopia (Blue-blind)
#333838 — rgb(51, 56, 56)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(187, 5%, 21%);
text
color: hsl(187, 5%, 21%);
border
border: 2px solid hsl(187, 5%, 21%);
gradient light
background: linear-gradient(to right, hsl(187, 5%, 41%), hsl(187, 5%, 21%));
gradient dark
background: linear-gradient(to right, hsl(187, 5%, 21%), hsl(187, 5%, 1%))
hex
background-color: #333838;
tailwind
bg-[hsl(187,5%,21%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(187, 5%, 21%, 0.4);
css variable
--color-primary: hsl(187, 5%, 21%);
Related Colors
Use Cases for Grayish Gray
Frequently Asked Questions
What are all the color codes for HSL(187, 5%, 21%)?
HEX: #333838 | RGB: rgb(51, 56, 56) | CMYK: 9%, 0%, 0%, 78% | HSV: 180°, 9%, 22%. Copy any format from the conversion table above.
What colors go well with #333838?
The complementary color is HSL(7, 5%, 21%). For a triadic harmony, use hues 187°, 307°, and 67°. For analogous combinations, try hues 157° and 217°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(187, 5%, 21%) in CSS?
As HSL: color: hsl(187, 5%, 21%); — As HEX: color: #333838; — As RGB: color: rgb(51, 56, 56); — Tailwind CSS: bg-[hsl(187,5%,21%)] — CSS variable: --color-primary: hsl(187, 5%, 21%);