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
Accessibility (WCAG)
White text on color
Black text on color
Colored text
Contrast Ratios
AA Normal (4.5:1)
AA Large (3:1)
AAA Normal (7:1)
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
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
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%);