HSL(227, 7%, 45%)
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(227,7%,45%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(227, 7%, 45%) | color: hsl(227, 7%, 45%) | |
| HEX | #6B6E7B | color: #6B6E7B | |
| RGB | rgb(107, 110, 123) | color: rgb(107, 110, 123) | |
| CMYK | cmyk(13%, 11%, 0%, 52%) | — | |
| HSV | hsv(229, 13%, 48%) | — | |
| HWB | hwb(229 42% 52%) | color: hwb(229 42% 52%) | |
| OKLCH | oklch(0.5402 0.0205 275.37) | color: oklch(0.5402 0.0205 275.37) | |
| Lab | lab(46.59 1.7 -7.58) | color: lab(46.59 1.7 -7.58) | |
| LCH | lch(46.59 7.77 282.64) | color: lch(46.59 7.77 282.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)
#6C6C78 — rgb(108, 108, 120)
Deuteranopia (Green-blind)
#6C6C77 — rgb(108, 108, 119)
Tritanopia (Blue-blind)
#6B7575 — rgb(107, 117, 117)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(227, 7%, 45%);
text
color: hsl(227, 7%, 45%);
border
border: 2px solid hsl(227, 7%, 45%);
gradient light
background: linear-gradient(to right, hsl(227, 7%, 65%), hsl(227, 7%, 45%));
gradient dark
background: linear-gradient(to right, hsl(227, 7%, 45%), hsl(227, 7%, 25%))
hex
background-color: #6B6E7B;
tailwind
bg-[hsl(227,7%,45%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(227, 7%, 45%, 0.4);
css variable
--color-primary: hsl(227, 7%, 45%);
Related Colors
Use Cases for Grayish Gray
Frequently Asked Questions
What are all the color codes for HSL(227, 7%, 45%)?
HEX: #6B6E7B | RGB: rgb(107, 110, 123) | CMYK: 13%, 11%, 0%, 52% | HSV: 229°, 13%, 48%. Copy any format from the conversion table above.
What colors go well with #6B6E7B?
The complementary color is HSL(47, 7%, 45%). For a triadic harmony, use hues 227°, 347°, and 107°. For analogous combinations, try hues 197° and 257°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(227, 7%, 45%) in CSS?
As HSL: color: hsl(227, 7%, 45%); — As HEX: color: #6B6E7B; — As RGB: color: rgb(107, 110, 123); — Tailwind CSS: bg-[hsl(227,7%,45%)] — CSS variable: --color-primary: hsl(227, 7%, 45%);