HSL(251, 4%, 56%)

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(251,4%,56%)]

Color Conversions

Format Value CSS Usage
HSL hsl(251, 4%, 56%) color: hsl(251, 4%, 56%)
HEX #8C8A93 color: #8C8A93
RGB rgb(140, 138, 147) color: rgb(140, 138, 147)
CMYK cmyk(5%, 6%, 0%, 42%)
HSV hsv(253, 6%, 58%)
HWB hwb(253 55% 42%) color: hwb(253 55% 42%)
OKLCH oklch(0.638 0.0135 296.2) color: oklch(0.638 0.0135 296.2)
Lab lab(57.9 2.53 -4.52) color: lab(57.9 2.53 -4.52)
LCH lch(57.9 5.18 299.24) color: lch(57.9 5.18 299.24)

Color Theory

Complementary

Triadic

Analogous

Tetradic (Square)

Split-Complementary

Accessibility (WCAG)

White text on color

Black text on color

Color on white bg

Colored text

Contrast Ratios

vs White 3.4:1
vs Black 6.17:1

AA Normal (4.5:1)

on White: FAIL ✗ on Black: PASS ✓

AA Large (3:1)

on White: PASS ✓ on Black: PASS ✓

AAA Normal (7:1)

on White: FAIL ✗

Best text on this color: black

Color Blindness Simulation

Protanopia (Red-blind)

#8B8B91 — rgb(139, 139, 145)

Deuteranopia (Green-blind)

#8B8B90 — rgb(139, 139, 144)

Tritanopia (Blue-blind)

#8C8F8F — rgb(140, 143, 143)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(251, 4%, 56%);

text

color: hsl(251, 4%, 56%);

border

border: 2px solid hsl(251, 4%, 56%);

gradient light

background: linear-gradient(to right, hsl(251, 4%, 76%), hsl(251, 4%, 56%));

gradient dark

background: linear-gradient(to right, hsl(251, 4%, 56%), hsl(251, 4%, 36%))

hex

background-color: #8C8A93;

tailwind

bg-[hsl(251,4%,56%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(251, 4%, 56%, 0.4);

css variable

--color-primary: hsl(251, 4%, 56%);

Related Colors

Use Cases for Grayish Gray

Neutral backgrounds Body text Borders Secondary buttons Disabled states

Frequently Asked Questions

What are all the color codes for HSL(251, 4%, 56%)?

HEX: #8C8A93 | RGB: rgb(140, 138, 147) | CMYK: 5%, 6%, 0%, 42% | HSV: 253°, 6%, 58%. Copy any format from the conversion table above.

What colors go well with #8C8A93?

The complementary color is HSL(71, 4%, 56%). For a triadic harmony, use hues 251°, 11°, and 131°. For analogous combinations, try hues 221° and 281°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(251, 4%, 56%) in CSS?

As HSL: color: hsl(251, 4%, 56%); — As HEX: color: #8C8A93; — As RGB: color: rgb(140, 138, 147); — Tailwind CSS: bg-[hsl(251,4%,56%)] — CSS variable: --color-primary: hsl(251, 4%, 56%);