HSL(197, 12%, 42%)

Grayish Blue — Blue color

Adjust Color

Color Information

Color Name

Grayish Blue

Color Family

Blue

Warm / Cool

🔵 Cool

Temperature

N/A

CSS Class

bg-[hsl(197,12%,42%)]

Color Conversions

Format Value CSS Usage
HSL hsl(197, 12%, 42%) color: hsl(197, 12%, 42%)
HEX #5E7178 color: #5E7178
RGB rgb(94, 113, 120) color: rgb(94, 113, 120)
CMYK cmyk(22%, 6%, 0%, 53%)
HSV hsv(196, 22%, 47%)
HWB hwb(196 37% 53%) color: hwb(196 37% 53%)
OKLCH oklch(0.5356 0.0251 222.14) color: oklch(0.5356 0.0251 222.14)
Lab lab(46.37 -5.35 -6.21) color: lab(46.37 -5.35 -6.21)
LCH lch(46.37 8.2 229.25) color: lch(46.37 8.2 229.25)

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 5.11:1
vs Black 4.11:1

AA Normal (4.5:1)

on White: PASS ✓ on Black: FAIL ✗

AA Large (3:1)

on White: PASS ✓ on Black: PASS ✓

AAA Normal (7:1)

on White: FAIL ✗

Best text on this color: white

Color Blindness Simulation

Protanopia (Red-blind)

#666676 — rgb(102, 102, 118)

Deuteranopia (Green-blind)

#656476 — rgb(101, 100, 118)

Tritanopia (Blue-blind)

#5F7575 — rgb(95, 117, 117)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(197, 12%, 42%);

text

color: hsl(197, 12%, 42%);

border

border: 2px solid hsl(197, 12%, 42%);

gradient light

background: linear-gradient(to right, hsl(197, 12%, 62%), hsl(197, 12%, 42%));

gradient dark

background: linear-gradient(to right, hsl(197, 12%, 42%), hsl(197, 12%, 22%))

hex

background-color: #5E7178;

tailwind

bg-[hsl(197,12%,42%)]

box shadow

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

css variable

--color-primary: hsl(197, 12%, 42%);

Related Colors

Use Cases for Grayish Blue

Corporate branding Trust signals Tech products Social media Primary buttons

Frequently Asked Questions

What are all the color codes for HSL(197, 12%, 42%)?

HEX: #5E7178 | RGB: rgb(94, 113, 120) | CMYK: 22%, 6%, 0%, 53% | HSV: 196°, 22%, 47%. Copy any format from the conversion table above.

What colors go well with #5E7178?

The complementary color is HSL(17, 12%, 42%). For a triadic harmony, use hues 197°, 317°, and 77°. For analogous combinations, try hues 167° and 227°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(197, 12%, 42%) in CSS?

As HSL: color: hsl(197, 12%, 42%); — As HEX: color: #5E7178; — As RGB: color: rgb(94, 113, 120); — Tailwind CSS: bg-[hsl(197,12%,42%)] — CSS variable: --color-primary: hsl(197, 12%, 42%);