HSL(312, 9%, 78%)

Grayish Gray — Gray color

Adjust Color

Color Information

Color Name

Grayish Gray

Color Family

Gray

Warm / Cool

🔴 Warm

Temperature

N/A

CSS Class

bg-[hsl(312,9%,78%)]

Color Conversions

Format Value CSS Usage
HSL hsl(312, 9%, 78%) color: hsl(312, 9%, 78%)
HEX #CCC2CA color: #CCC2CA
RGB rgb(204, 194, 202) color: rgb(204, 194, 202)
CMYK cmyk(0%, 5%, 1%, 20%)
HSV hsv(312, 5%, 80%)
HWB hwb(312 76% 20%) color: hwb(312 76% 20%)
OKLCH oklch(0.8246 0.0156 332.28) color: oklch(0.8246 0.0156 332.28)
Lab lab(79.43 4.93 -2.75) color: lab(79.43 4.93 -2.75)
LCH lch(79.43 5.65 330.85) color: lch(79.43 5.65 330.85)

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.73:1
vs Black 12.14: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)

#C8C8C8 — rgb(200, 200, 200)

Deuteranopia (Green-blind)

#C8C9C8 — rgb(200, 201, 200)

Tritanopia (Blue-blind)

#CCC7C6 — rgb(204, 199, 198)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(312, 9%, 78%);

text

color: hsl(312, 9%, 78%);

border

border: 2px solid hsl(312, 9%, 78%);

gradient light

background: linear-gradient(to right, hsl(312, 9%, 98%), hsl(312, 9%, 78%));

gradient dark

background: linear-gradient(to right, hsl(312, 9%, 78%), hsl(312, 9%, 58%))

hex

background-color: #CCC2CA;

tailwind

bg-[hsl(312,9%,78%)]

box shadow

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

css variable

--color-primary: hsl(312, 9%, 78%);

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(312, 9%, 78%)?

HEX: #CCC2CA | RGB: rgb(204, 194, 202) | CMYK: 0%, 5%, 1%, 20% | HSV: 312°, 5%, 80%. Copy any format from the conversion table above.

What colors go well with #CCC2CA?

The complementary color is HSL(132, 9%, 78%). 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, 9%, 78%) in CSS?

As HSL: color: hsl(312, 9%, 78%); — As HEX: color: #CCC2CA; — As RGB: color: rgb(204, 194, 202); — Tailwind CSS: bg-[hsl(312,9%,78%)] — CSS variable: --color-primary: hsl(312, 9%, 78%);