HSL(305, 4%, 40%)
Grayish Gray — Gray color
Adjust Color
Color Information
Color Name
Grayish Gray
Color Family
Gray
Warm / Cool
🔴 Warm
Temperature
N/A
CSS Class
bg-[hsl(305,4%,40%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(305, 4%, 40%) | color: hsl(305, 4%, 40%) | |
| HEX | #6A6269 | color: #6A6269 | |
| RGB | rgb(106, 98, 105) | color: rgb(106, 98, 105) | |
| CMYK | cmyk(0%, 8%, 1%, 58%) | — | |
| HSV | hsv(308, 8%, 42%) | — | |
| HWB | hwb(308 39% 58%) | color: hwb(308 39% 58%) | |
| OKLCH | oklch(0.506 0.0148 329.75) | color: oklch(0.506 0.0148 329.75) | |
| Lab | lab(42.49 4.58 -2.81) | color: lab(42.49 4.58 -2.81) | |
| LCH | lch(42.49 5.37 328.47) | color: lch(42.49 5.37 328.47) |
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)
#676667 — rgb(103, 102, 103)
Deuteranopia (Green-blind)
#676867 — rgb(103, 104, 103)
Tritanopia (Blue-blind)
#6A6666 — rgb(106, 102, 102)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(305, 4%, 40%);
text
color: hsl(305, 4%, 40%);
border
border: 2px solid hsl(305, 4%, 40%);
gradient light
background: linear-gradient(to right, hsl(305, 4%, 60%), hsl(305, 4%, 40%));
gradient dark
background: linear-gradient(to right, hsl(305, 4%, 40%), hsl(305, 4%, 20%))
hex
background-color: #6A6269;
tailwind
bg-[hsl(305,4%,40%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(305, 4%, 40%, 0.4);
css variable
--color-primary: hsl(305, 4%, 40%);
Related Colors
Use Cases for Grayish Gray
Frequently Asked Questions
What are all the color codes for HSL(305, 4%, 40%)?
HEX: #6A6269 | RGB: rgb(106, 98, 105) | CMYK: 0%, 8%, 1%, 58% | HSV: 308°, 8%, 42%. Copy any format from the conversion table above.
What colors go well with #6A6269?
The complementary color is HSL(125, 4%, 40%). For a triadic harmony, use hues 305°, 65°, and 185°. For analogous combinations, try hues 275° and 335°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(305, 4%, 40%) in CSS?
As HSL: color: hsl(305, 4%, 40%); — As HEX: color: #6A6269; — As RGB: color: rgb(106, 98, 105); — Tailwind CSS: bg-[hsl(305,4%,40%)] — CSS variable: --color-primary: hsl(305, 4%, 40%);