HSL(228, 6%, 33%)

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(228,6%,33%)]

Color Conversions

Format Value CSS Usage
HSL hsl(228, 6%, 33%) color: hsl(228, 6%, 33%)
HEX #4F5159 color: #4F5159
RGB rgb(79, 81, 89) color: rgb(79, 81, 89)
CMYK cmyk(11%, 9%, 0%, 65%)
HSV hsv(228, 11%, 35%)
HWB hwb(228 31% 65%) color: hwb(228 31% 65%)
OKLCH oklch(0.436 0.0133 274.64) color: oklch(0.436 0.0133 274.64)
Lab lab(34.54 1.02 -4.95) color: lab(34.54 1.02 -4.95)
LCH lch(34.54 5.05 281.64) color: lch(34.54 5.05 281.64)

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 7.91:1
vs Black 2.65:1

AA Normal (4.5:1)

on White: PASS ✓ on Black: FAIL ✗

AA Large (3:1)

on White: PASS ✓ on Black: FAIL ✗

AAA Normal (7:1)

on White: PASS ✓

Best text on this color: white

Color Blindness Simulation

Protanopia (Red-blind)

#505057 — rgb(80, 80, 87)

Deuteranopia (Green-blind)

#505057 — rgb(80, 80, 87)

Tritanopia (Blue-blind)

#4F5655 — rgb(79, 86, 85)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(228, 6%, 33%);

text

color: hsl(228, 6%, 33%);

border

border: 2px solid hsl(228, 6%, 33%);

gradient light

background: linear-gradient(to right, hsl(228, 6%, 53%), hsl(228, 6%, 33%));

gradient dark

background: linear-gradient(to right, hsl(228, 6%, 33%), hsl(228, 6%, 13%))

hex

background-color: #4F5159;

tailwind

bg-[hsl(228,6%,33%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(228, 6%, 33%, 0.4);

css variable

--color-primary: hsl(228, 6%, 33%);

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(228, 6%, 33%)?

HEX: #4F5159 | RGB: rgb(79, 81, 89) | CMYK: 11%, 9%, 0%, 65% | HSV: 228°, 11%, 35%. Copy any format from the conversion table above.

What colors go well with #4F5159?

The complementary color is HSL(48, 6%, 33%). For a triadic harmony, use hues 228°, 348°, and 108°. For analogous combinations, try hues 198° and 258°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(228, 6%, 33%) in CSS?

As HSL: color: hsl(228, 6%, 33%); — As HEX: color: #4F5159; — As RGB: color: rgb(79, 81, 89); — Tailwind CSS: bg-[hsl(228,6%,33%)] — CSS variable: --color-primary: hsl(228, 6%, 33%);