HSL(231, 9%, 52%)

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(231,9%,52%)]

Color Conversions

Format Value CSS Usage
HSL hsl(231, 9%, 52%) color: hsl(231, 9%, 52%)
HEX #7A7D90 color: #7A7D90
RGB rgb(122, 125, 144) color: rgb(122, 125, 144)
CMYK cmyk(15%, 13%, 0%, 44%)
HSV hsv(232, 15%, 56%)
HWB hwb(232 48% 44%) color: hwb(232 48% 44%)
OKLCH oklch(0.5937 0.0291 278.38) color: oklch(0.5937 0.0291 278.38)
Lab lab(52.75 2.99 -10.62) color: lab(52.75 2.99 -10.62)
LCH lch(52.75 11.03 285.72) color: lch(52.75 11.03 285.72)

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 4.07:1
vs Black 5.16:1

AA Normal (4.5:1)

on White: FAIL ✗ on Black: PASS ✓

AA Large (3:1)

on White: PASS ✓ on Black: PASS ✓

AAA Normal (7:1)

on White: FAIL ✗

Best text on this color: black

Color Blindness Simulation

Protanopia (Red-blind)

#7B7B8B — rgb(123, 123, 139)

Deuteranopia (Green-blind)

#7B7B8A — rgb(123, 123, 138)

Tritanopia (Blue-blind)

#7A8887 — rgb(122, 136, 135)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(231, 9%, 52%);

text

color: hsl(231, 9%, 52%);

border

border: 2px solid hsl(231, 9%, 52%);

gradient light

background: linear-gradient(to right, hsl(231, 9%, 72%), hsl(231, 9%, 52%));

gradient dark

background: linear-gradient(to right, hsl(231, 9%, 52%), hsl(231, 9%, 32%))

hex

background-color: #7A7D90;

tailwind

bg-[hsl(231,9%,52%)]

box shadow

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

css variable

--color-primary: hsl(231, 9%, 52%);

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(231, 9%, 52%)?

HEX: #7A7D90 | RGB: rgb(122, 125, 144) | CMYK: 15%, 13%, 0%, 44% | HSV: 232°, 15%, 56%. Copy any format from the conversion table above.

What colors go well with #7A7D90?

The complementary color is HSL(51, 9%, 52%). For a triadic harmony, use hues 231°, 351°, and 111°. For analogous combinations, try hues 201° and 261°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(231, 9%, 52%) in CSS?

As HSL: color: hsl(231, 9%, 52%); — As HEX: color: #7A7D90; — As RGB: color: rgb(122, 125, 144); — Tailwind CSS: bg-[hsl(231,9%,52%)] — CSS variable: --color-primary: hsl(231, 9%, 52%);