HSL(7, 2%, 35%)

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(7,2%,35%)]

Color Conversions

Format Value CSS Usage
HSL hsl(7, 2%, 35%) color: hsl(7, 2%, 35%)
HEX #5B5857 color: #5B5857
RGB rgb(91, 88, 87) color: rgb(91, 88, 87)
CMYK cmyk(0%, 3%, 4%, 64%)
HSV hsv(15, 4%, 36%)
HWB hwb(15 35% 64%) color: hwb(15 35% 64%)
OKLCH oklch(0.4629 0.0042 39.45) color: oklch(0.4629 0.0042 39.45)
Lab lab(37.65 1 1.01) color: lab(37.65 1 1.01)
LCH lch(37.65 1.42 45.29) color: lch(37.65 1.42 45.29)

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 7.05:1
vs Black 2.98:1

AA Normal (4.5:1)

on White: PASS ✓ on Black: FAIL ✗

AA Large (3:1)

on White: PASS ✓ on Black: FAIL ✗

AAA Normal (7:1)

on White: PASS ✓

Best text on this color: white

Color Blindness Simulation

Protanopia (Red-blind)

#5A5A57 — rgb(90, 90, 87)

Deuteranopia (Green-blind)

#5A5A57 — rgb(90, 90, 87)

Tritanopia (Blue-blind)

#5B5757 — rgb(91, 87, 87)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(7, 2%, 35%);

text

color: hsl(7, 2%, 35%);

border

border: 2px solid hsl(7, 2%, 35%);

gradient light

background: linear-gradient(to right, hsl(7, 2%, 55%), hsl(7, 2%, 35%));

gradient dark

background: linear-gradient(to right, hsl(7, 2%, 35%), hsl(7, 2%, 15%))

hex

background-color: #5B5857;

tailwind

bg-[hsl(7,2%,35%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(7, 2%, 35%, 0.4);

css variable

--color-primary: hsl(7, 2%, 35%);

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(7, 2%, 35%)?

HEX: #5B5857 | RGB: rgb(91, 88, 87) | CMYK: 0%, 3%, 4%, 64% | HSV: 15°, 4%, 36%. Copy any format from the conversion table above.

What colors go well with #5B5857?

The complementary color is HSL(187, 2%, 35%). For a triadic harmony, use hues 7°, 127°, and 247°. For analogous combinations, try hues 337° and 37°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(7, 2%, 35%) in CSS?

As HSL: color: hsl(7, 2%, 35%); — As HEX: color: #5B5857; — As RGB: color: rgb(91, 88, 87); — Tailwind CSS: bg-[hsl(7,2%,35%)] — CSS variable: --color-primary: hsl(7, 2%, 35%);