HSL(171, 2%, 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(171,2%,52%)]

Color Conversions

Format Value CSS Usage
HSL hsl(171, 2%, 52%) color: hsl(171, 2%, 52%)
HEX #828786 color: #828786
RGB rgb(130, 135, 134) color: rgb(130, 135, 134)
CMYK cmyk(4%, 0%, 1%, 47%)
HSV hsv(168, 4%, 53%)
HWB hwb(168 51% 47%) color: hwb(168 51% 47%)
OKLCH oklch(0.6189 0.0061 182.91) color: oklch(0.6189 0.0061 182.91)
Lab lab(55.88 -2.04 -0.1) color: lab(55.88 -2.04 -0.1)
LCH lch(55.88 2.04 182.81) color: lch(55.88 2.04 182.81)

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 3.65:1
vs Black 5.76: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)

#848486 — rgb(132, 132, 134)

Deuteranopia (Green-blind)

#848486 — rgb(132, 132, 134)

Tritanopia (Blue-blind)

#828686 — rgb(130, 134, 134)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(171, 2%, 52%);

text

color: hsl(171, 2%, 52%);

border

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

gradient light

background: linear-gradient(to right, hsl(171, 2%, 72%), hsl(171, 2%, 52%));

gradient dark

background: linear-gradient(to right, hsl(171, 2%, 52%), hsl(171, 2%, 32%))

hex

background-color: #828786;

tailwind

bg-[hsl(171,2%,52%)]

box shadow

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

css variable

--color-primary: hsl(171, 2%, 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(171, 2%, 52%)?

HEX: #828786 | RGB: rgb(130, 135, 134) | CMYK: 4%, 0%, 1%, 47% | HSV: 168°, 4%, 53%. Copy any format from the conversion table above.

What colors go well with #828786?

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

How do I use HSL(171, 2%, 52%) in CSS?

As HSL: color: hsl(171, 2%, 52%); — As HEX: color: #828786; — As RGB: color: rgb(130, 135, 134); — Tailwind CSS: bg-[hsl(171,2%,52%)] — CSS variable: --color-primary: hsl(171, 2%, 52%);