HSL(312, 12%, 56%)

Grayish Purple — Purple color

Adjust Color

Color Information

Color Name

Grayish Purple

Color Family

Purple

Warm / Cool

🔴 Warm

Temperature

N/A

CSS Class

bg-[hsl(312,12%,56%)]

Color Conversions

Format Value CSS Usage
HSL hsl(312, 12%, 56%) color: hsl(312, 12%, 56%)
HEX #9C8197 color: #9C8197
RGB rgb(156, 129, 151) color: rgb(156, 129, 151)
CMYK cmyk(0%, 17%, 3%, 39%)
HSV hsv(311, 17%, 61%)
HWB hwb(311 51% 39%) color: hwb(311 51% 39%)
OKLCH oklch(0.6355 0.0454 332.45) color: oklch(0.6355 0.0454 332.45)
Lab lab(57.08 14.28 -7.89) color: lab(57.08 14.28 -7.89)
LCH lch(57.08 16.31 331.08) color: lch(57.08 16.31 331.08)

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.5:1
vs Black 6: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)

#909092 — rgb(144, 144, 146)

Deuteranopia (Green-blind)

#929490 — rgb(146, 148, 144)

Tritanopia (Blue-blind)

#9B8D8D — rgb(155, 141, 141)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(312, 12%, 56%);

text

color: hsl(312, 12%, 56%);

border

border: 2px solid hsl(312, 12%, 56%);

gradient light

background: linear-gradient(to right, hsl(312, 12%, 76%), hsl(312, 12%, 56%));

gradient dark

background: linear-gradient(to right, hsl(312, 12%, 56%), hsl(312, 12%, 36%))

hex

background-color: #9C8197;

tailwind

bg-[hsl(312,12%,56%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(312, 12%, 56%, 0.4);

css variable

--color-primary: hsl(312, 12%, 56%);

Related Colors

Use Cases for Grayish Purple

Luxury brands Creative agencies Beauty products Royalty themes Premium badges

Frequently Asked Questions

What are all the color codes for HSL(312, 12%, 56%)?

HEX: #9C8197 | RGB: rgb(156, 129, 151) | CMYK: 0%, 17%, 3%, 39% | HSV: 311°, 17%, 61%. Copy any format from the conversion table above.

What colors go well with #9C8197?

The complementary color is HSL(132, 12%, 56%). For a triadic harmony, use hues 312°, 72°, and 192°. For analogous combinations, try hues 282° and 342°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(312, 12%, 56%) in CSS?

As HSL: color: hsl(312, 12%, 56%); — As HEX: color: #9C8197; — As RGB: color: rgb(156, 129, 151); — Tailwind CSS: bg-[hsl(312,12%,56%)] — CSS variable: --color-primary: hsl(312, 12%, 56%);