HSL(258, 6%, 30%)
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(258,6%,30%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(258, 6%, 30%) | color: hsl(258, 6%, 30%) | |
| HEX | #4B4851 | color: #4B4851 | |
| RGB | rgb(75, 72, 81) | color: rgb(75, 72, 81) | |
| CMYK | cmyk(7%, 11%, 0%, 68%) | — | |
| HSV | hsv(260, 11%, 32%) | — | |
| HWB | hwb(260 28% 68%) | color: hwb(260 28% 68%) | |
| OKLCH | oklch(0.4079 0.0153 300.89) | color: oklch(0.4079 0.0153 300.89) | |
| Lab | lab(31.17 3.26 -4.9) | color: lab(31.17 3.26 -4.9) | |
| LCH | lch(31.17 5.89 303.64) | color: lch(31.17 5.89 303.64) |
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)
#4A4A4F — rgb(74, 74, 79)
Deuteranopia (Green-blind)
#4A4A4E — rgb(74, 74, 78)
Tritanopia (Blue-blind)
#4B4D4D — rgb(75, 77, 77)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(258, 6%, 30%);
text
color: hsl(258, 6%, 30%);
border
border: 2px solid hsl(258, 6%, 30%);
gradient light
background: linear-gradient(to right, hsl(258, 6%, 50%), hsl(258, 6%, 30%));
gradient dark
background: linear-gradient(to right, hsl(258, 6%, 30%), hsl(258, 6%, 10%))
hex
background-color: #4B4851;
tailwind
bg-[hsl(258,6%,30%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(258, 6%, 30%, 0.4);
css variable
--color-primary: hsl(258, 6%, 30%);
Related Colors
Use Cases for Grayish Gray
Frequently Asked Questions
What are all the color codes for HSL(258, 6%, 30%)?
HEX: #4B4851 | RGB: rgb(75, 72, 81) | CMYK: 7%, 11%, 0%, 68% | HSV: 260°, 11%, 32%. Copy any format from the conversion table above.
What colors go well with #4B4851?
The complementary color is HSL(78, 6%, 30%). For a triadic harmony, use hues 258°, 18°, and 138°. For analogous combinations, try hues 228° and 288°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(258, 6%, 30%) in CSS?
As HSL: color: hsl(258, 6%, 30%); — As HEX: color: #4B4851; — As RGB: color: rgb(75, 72, 81); — Tailwind CSS: bg-[hsl(258,6%,30%)] — CSS variable: --color-primary: hsl(258, 6%, 30%);