HSL(242, 9%, 74%)

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(242,9%,74%)]

Color Conversions

Format Value CSS Usage
HSL hsl(242, 9%, 74%) color: hsl(242, 9%, 74%)
HEX #B7B7C3 color: #B7B7C3
RGB rgb(183, 183, 195) color: rgb(183, 183, 195)
CMYK cmyk(6%, 6%, 0%, 24%)
HSV hsv(240, 6%, 76%)
HWB hwb(240 71% 24%) color: hwb(240 71% 24%)
OKLCH oklch(0.7831 0.0169 286) color: oklch(0.7831 0.0169 286)
Lab lab(74.75 2.3 -6.06) color: lab(74.75 2.3 -6.06)
LCH lch(74.75 6.48 290.78) color: lch(74.75 6.48 290.78)

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 1.99:1
vs Black 10.57:1

AA Normal (4.5:1)

on White: FAIL ✗ on Black: PASS ✓

AA Large (3:1)

on White: FAIL ✗ on Black: PASS ✓

AAA Normal (7:1)

on White: FAIL ✗

Best text on this color: black

Color Blindness Simulation

Protanopia (Red-blind)

#B7B7C0 — rgb(183, 183, 192)

Deuteranopia (Green-blind)

#B7B7BF — rgb(183, 183, 191)

Tritanopia (Blue-blind)

#B7BEBD — rgb(183, 190, 189)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(242, 9%, 74%);

text

color: hsl(242, 9%, 74%);

border

border: 2px solid hsl(242, 9%, 74%);

gradient light

background: linear-gradient(to right, hsl(242, 9%, 94%), hsl(242, 9%, 74%));

gradient dark

background: linear-gradient(to right, hsl(242, 9%, 74%), hsl(242, 9%, 54%))

hex

background-color: #B7B7C3;

tailwind

bg-[hsl(242,9%,74%)]

box shadow

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

css variable

--color-primary: hsl(242, 9%, 74%);

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(242, 9%, 74%)?

HEX: #B7B7C3 | RGB: rgb(183, 183, 195) | CMYK: 6%, 6%, 0%, 24% | HSV: 240°, 6%, 76%. Copy any format from the conversion table above.

What colors go well with #B7B7C3?

The complementary color is HSL(62, 9%, 74%). For a triadic harmony, use hues 242°, 2°, and 122°. For analogous combinations, try hues 212° and 272°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(242, 9%, 74%) in CSS?

As HSL: color: hsl(242, 9%, 74%); — As HEX: color: #B7B7C3; — As RGB: color: rgb(183, 183, 195); — Tailwind CSS: bg-[hsl(242,9%,74%)] — CSS variable: --color-primary: hsl(242, 9%, 74%);