HSL(200, 5%, 52%)
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(200,5%,52%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(200, 5%, 52%) | color: hsl(200, 5%, 52%) | |
| HEX | #7E878B | color: #7E878B | |
| RGB | rgb(126, 135, 139) | color: rgb(126, 135, 139) | |
| CMYK | cmyk(9%, 3%, 0%, 45%) | — | |
| HSV | hsv(198, 9%, 55%) | — | |
| HWB | hwb(198 50% 45%) | color: hwb(198 50% 45%) | |
| OKLCH | oklch(0.6173 0.0122 226.09) | color: oklch(0.6173 0.0122 226.09) | |
| Lab | lab(55.71 -2.45 -3.28) | color: lab(55.71 -2.45 -3.28) | |
| LCH | lch(55.71 4.09 233.24) | color: lch(55.71 4.09 233.24) |
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: black
Color Blindness Simulation
Protanopia (Red-blind)
#82828A — rgb(130, 130, 138)
Deuteranopia (Green-blind)
#81818A — rgb(129, 129, 138)
Tritanopia (Blue-blind)
#7E8989 — rgb(126, 137, 137)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(200, 5%, 52%);
text
color: hsl(200, 5%, 52%);
border
border: 2px solid hsl(200, 5%, 52%);
gradient light
background: linear-gradient(to right, hsl(200, 5%, 72%), hsl(200, 5%, 52%));
gradient dark
background: linear-gradient(to right, hsl(200, 5%, 52%), hsl(200, 5%, 32%))
hex
background-color: #7E878B;
tailwind
bg-[hsl(200,5%,52%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(200, 5%, 52%, 0.4);
css variable
--color-primary: hsl(200, 5%, 52%);
Related Colors
Use Cases for Grayish Gray
Frequently Asked Questions
What are all the color codes for HSL(200, 5%, 52%)?
HEX: #7E878B | RGB: rgb(126, 135, 139) | CMYK: 9%, 3%, 0%, 45% | HSV: 198°, 9%, 55%. Copy any format from the conversion table above.
What colors go well with #7E878B?
The complementary color is HSL(20, 5%, 52%). For a triadic harmony, use hues 200°, 320°, and 80°. For analogous combinations, try hues 170° and 230°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(200, 5%, 52%) in CSS?
As HSL: color: hsl(200, 5%, 52%); — As HEX: color: #7E878B; — As RGB: color: rgb(126, 135, 139); — Tailwind CSS: bg-[hsl(200,5%,52%)] — CSS variable: --color-primary: hsl(200, 5%, 52%);