HSL(230, 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(230,5%,52%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(230, 5%, 52%) | color: hsl(230, 5%, 52%) | |
| HEX | #7E818B | color: #7E818B | |
| RGB | rgb(126, 129, 139) | color: rgb(126, 129, 139) | |
| CMYK | cmyk(9%, 7%, 0%, 45%) | — | |
| HSV | hsv(226, 9%, 55%) | — | |
| HWB | hwb(226 50% 45%) | color: hwb(226 50% 45%) | |
| OKLCH | oklch(0.604 0.0155 272.56) | color: oklch(0.604 0.0155 272.56) | |
| Lab | lab(54.03 0.98 -5.77) | color: lab(54.03 0.98 -5.77) | |
| LCH | lch(54.03 5.85 279.64) | color: lch(54.03 5.85 279.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: black
Color Blindness Simulation
Protanopia (Red-blind)
#7F7F89 — rgb(127, 127, 137)
Deuteranopia (Green-blind)
#7F7F88 — rgb(127, 127, 136)
Tritanopia (Blue-blind)
#7E8786 — rgb(126, 135, 134)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(230, 5%, 52%);
text
color: hsl(230, 5%, 52%);
border
border: 2px solid hsl(230, 5%, 52%);
gradient light
background: linear-gradient(to right, hsl(230, 5%, 72%), hsl(230, 5%, 52%));
gradient dark
background: linear-gradient(to right, hsl(230, 5%, 52%), hsl(230, 5%, 32%))
hex
background-color: #7E818B;
tailwind
bg-[hsl(230,5%,52%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(230, 5%, 52%, 0.4);
css variable
--color-primary: hsl(230, 5%, 52%);
Related Colors
Use Cases for Grayish Gray
Frequently Asked Questions
What are all the color codes for HSL(230, 5%, 52%)?
HEX: #7E818B | RGB: rgb(126, 129, 139) | CMYK: 9%, 7%, 0%, 45% | HSV: 226°, 9%, 55%. Copy any format from the conversion table above.
What colors go well with #7E818B?
The complementary color is HSL(50, 5%, 52%). For a triadic harmony, use hues 230°, 350°, and 110°. For analogous combinations, try hues 200° and 260°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(230, 5%, 52%) in CSS?
As HSL: color: hsl(230, 5%, 52%); — As HEX: color: #7E818B; — As RGB: color: rgb(126, 129, 139); — Tailwind CSS: bg-[hsl(230,5%,52%)] — CSS variable: --color-primary: hsl(230, 5%, 52%);