HSL(42, 9%, 36%)

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(42,9%,36%)]

Color Conversions

Format Value CSS Usage
HSL hsl(42, 9%, 36%) color: hsl(42, 9%, 36%)
HEX #645F54 color: #645F54
RGB rgb(100, 95, 84) color: rgb(100, 95, 84)
CMYK cmyk(0%, 5%, 16%, 61%)
HSV hsv(41, 16%, 39%)
HWB hwb(41 33% 61%) color: hwb(41 33% 61%)
OKLCH oklch(0.4868 0.0182 86.47) color: oklch(0.4868 0.0182 86.47)
Lab lab(40.47 -0.11 7.01) color: lab(40.47 -0.11 7.01)
LCH lch(40.47 7.01 90.9) color: lch(40.47 7.01 90.9)

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 6.35:1
vs Black 3.31: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)

#626257 — rgb(98, 98, 87)

Deuteranopia (Green-blind)

#626357 — rgb(98, 99, 87)

Tritanopia (Blue-blind)

#645959 — rgb(100, 89, 89)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(42, 9%, 36%);

text

color: hsl(42, 9%, 36%);

border

border: 2px solid hsl(42, 9%, 36%);

gradient light

background: linear-gradient(to right, hsl(42, 9%, 56%), hsl(42, 9%, 36%));

gradient dark

background: linear-gradient(to right, hsl(42, 9%, 36%), hsl(42, 9%, 16%))

hex

background-color: #645F54;

tailwind

bg-[hsl(42,9%,36%)]

box shadow

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

css variable

--color-primary: hsl(42, 9%, 36%);

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(42, 9%, 36%)?

HEX: #645F54 | RGB: rgb(100, 95, 84) | CMYK: 0%, 5%, 16%, 61% | HSV: 41°, 16%, 39%. Copy any format from the conversion table above.

What colors go well with #645F54?

The complementary color is HSL(222, 9%, 36%). For a triadic harmony, use hues 42°, 162°, and 282°. For analogous combinations, try hues 12° and 72°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(42, 9%, 36%) in CSS?

As HSL: color: hsl(42, 9%, 36%); — As HEX: color: #645F54; — As RGB: color: rgb(100, 95, 84); — Tailwind CSS: bg-[hsl(42,9%,36%)] — CSS variable: --color-primary: hsl(42, 9%, 36%);