HSL(23, 5%, 40%)

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(23,5%,40%)]

Color Conversions

Format Value CSS Usage
HSL hsl(23, 5%, 40%) color: hsl(23, 5%, 40%)
HEX #6B6561 color: #6B6561
RGB rgb(107, 101, 97) color: rgb(107, 101, 97)
CMYK cmyk(0%, 6%, 9%, 58%)
HSV hsv(24, 9%, 42%)
HWB hwb(24 38% 58%) color: hwb(24 38% 58%)
OKLCH oklch(0.511 0.0099 56.17) color: oklch(0.511 0.0099 56.17)
Lab lab(43.21 1.58 3.11) color: lab(43.21 1.58 3.11)
LCH lch(43.21 3.49 63.07) color: lch(43.21 3.49 63.07)

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.74:1
vs Black 3.66: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)

#686862 — rgb(104, 104, 98)

Deuteranopia (Green-blind)

#696962 — rgb(105, 105, 98)

Tritanopia (Blue-blind)

#6B6363 — rgb(107, 99, 99)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(23, 5%, 40%);

text

color: hsl(23, 5%, 40%);

border

border: 2px solid hsl(23, 5%, 40%);

gradient light

background: linear-gradient(to right, hsl(23, 5%, 60%), hsl(23, 5%, 40%));

gradient dark

background: linear-gradient(to right, hsl(23, 5%, 40%), hsl(23, 5%, 20%))

hex

background-color: #6B6561;

tailwind

bg-[hsl(23,5%,40%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(23, 5%, 40%, 0.4);

css variable

--color-primary: hsl(23, 5%, 40%);

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(23, 5%, 40%)?

HEX: #6B6561 | RGB: rgb(107, 101, 97) | CMYK: 0%, 6%, 9%, 58% | HSV: 24°, 9%, 42%. Copy any format from the conversion table above.

What colors go well with #6B6561?

The complementary color is HSL(203, 5%, 40%). For a triadic harmony, use hues 23°, 143°, and 263°. For analogous combinations, try hues 353° and 53°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(23, 5%, 40%) in CSS?

As HSL: color: hsl(23, 5%, 40%); — As HEX: color: #6B6561; — As RGB: color: rgb(107, 101, 97); — Tailwind CSS: bg-[hsl(23,5%,40%)] — CSS variable: --color-primary: hsl(23, 5%, 40%);