HSL(97, 9%, 38%)

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(97,9%,38%)]

Color Conversions

Format Value CSS Usage
HSL hsl(97, 9%, 38%) color: hsl(97, 9%, 38%)
HEX #5F6A58 color: #5F6A58
RGB rgb(95, 106, 88) color: rgb(95, 106, 88)
CMYK cmyk(10%, 0%, 17%, 58%)
HSV hsv(97, 17%, 42%)
HWB hwb(97 35% 58%) color: hwb(97 35% 58%)
OKLCH oklch(0.5094 0.0309 133.22) color: oklch(0.5094 0.0309 133.22)
Lab lab(43.43 -7.89 8.71) color: lab(43.43 -7.89 8.71)
LCH lch(43.43 11.75 132.17) color: lch(43.43 11.75 132.17)

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 5.69:1
vs Black 3.69:1

AA Normal (4.5:1)

on White: PASS ✓ on Black: FAIL ✗

AA Large (3:1)

on White: PASS ✓ on Black: PASS ✓

AAA Normal (7:1)

on White: FAIL ✗

Best text on this color: white

Color Blindness Simulation

Protanopia (Red-blind)

#64645C — rgb(100, 100, 92)

Deuteranopia (Green-blind)

#63625D — rgb(99, 98, 93)

Tritanopia (Blue-blind)

#606061 — rgb(96, 96, 97)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(97, 9%, 38%);

text

color: hsl(97, 9%, 38%);

border

border: 2px solid hsl(97, 9%, 38%);

gradient light

background: linear-gradient(to right, hsl(97, 9%, 58%), hsl(97, 9%, 38%));

gradient dark

background: linear-gradient(to right, hsl(97, 9%, 38%), hsl(97, 9%, 18%))

hex

background-color: #5F6A58;

tailwind

bg-[hsl(97,9%,38%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(97, 9%, 38%, 0.4);

css variable

--color-primary: hsl(97, 9%, 38%);

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(97, 9%, 38%)?

HEX: #5F6A58 | RGB: rgb(95, 106, 88) | CMYK: 10%, 0%, 17%, 58% | HSV: 97°, 17%, 42%. Copy any format from the conversion table above.

What colors go well with #5F6A58?

The complementary color is HSL(277, 9%, 38%). For a triadic harmony, use hues 97°, 217°, and 337°. For analogous combinations, try hues 67° and 127°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(97, 9%, 38%) in CSS?

As HSL: color: hsl(97, 9%, 38%); — As HEX: color: #5F6A58; — As RGB: color: rgb(95, 106, 88); — Tailwind CSS: bg-[hsl(97,9%,38%)] — CSS variable: --color-primary: hsl(97, 9%, 38%);