HSL(308, 17%, 22%)

Purple — Purple color

Adjust Color

Color Information

Color Name

Purple

Color Family

Purple

Warm / Cool

🔴 Warm

Temperature

N/A

CSS Class

bg-[hsl(308,17%,22%)]

Color Conversions

Format Value CSS Usage
HSL hsl(308, 17%, 22%) color: hsl(308, 17%, 22%)
HEX #422F3F color: #422F3F
RGB rgb(66, 47, 63) color: rgb(66, 47, 63)
CMYK cmyk(0%, 29%, 5%, 74%)
HSV hsv(309, 29%, 26%)
HWB hwb(309 18% 74%) color: hwb(309 18% 74%)
OKLCH oklch(0.3333 0.038 331.94) color: oklch(0.3333 0.038 331.94)
Lab lab(22.13 11.88 -6.68) color: lab(22.13 11.88 -6.68)
LCH lch(22.13 13.63 330.65) color: lch(22.13 13.63 330.65)

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 12.28:1
vs Black 1.71: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)

#3A3A3B — rgb(58, 58, 59)

Deuteranopia (Green-blind)

#3B3C3A — rgb(59, 60, 58)

Tritanopia (Blue-blind)

#413837 — rgb(65, 56, 55)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(308, 17%, 22%);

text

color: hsl(308, 17%, 22%);

border

border: 2px solid hsl(308, 17%, 22%);

gradient light

background: linear-gradient(to right, hsl(308, 17%, 42%), hsl(308, 17%, 22%));

gradient dark

background: linear-gradient(to right, hsl(308, 17%, 22%), hsl(308, 17%, 2%))

hex

background-color: #422F3F;

tailwind

bg-[hsl(308,17%,22%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(308, 17%, 22%, 0.4);

css variable

--color-primary: hsl(308, 17%, 22%);

Related Colors

Use Cases for Purple

Luxury brands Creative agencies Beauty products Royalty themes Premium badges

Frequently Asked Questions

What are all the color codes for HSL(308, 17%, 22%)?

HEX: #422F3F | RGB: rgb(66, 47, 63) | CMYK: 0%, 29%, 5%, 74% | HSV: 309°, 29%, 26%. Copy any format from the conversion table above.

What colors go well with #422F3F?

The complementary color is HSL(128, 17%, 22%). For a triadic harmony, use hues 308°, 68°, and 188°. For analogous combinations, try hues 278° and 338°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(308, 17%, 22%) in CSS?

As HSL: color: hsl(308, 17%, 22%); — As HEX: color: #422F3F; — As RGB: color: rgb(66, 47, 63); — Tailwind CSS: bg-[hsl(308,17%,22%)] — CSS variable: --color-primary: hsl(308, 17%, 22%);