HSL(311, 23%, 18%)

Purple — Purple color

Adjust Color

Color Information

Color Name

Purple

Color Family

Purple

Warm / Cool

🔴 Warm

Temperature

6500K

CSS Class

bg-[hsl(311,23%,18%)]

Color Conversions

Format Value CSS Usage
HSL hsl(311, 23%, 18%) color: hsl(311, 23%, 18%)
HEX #382335 color: #382335
RGB rgb(56, 35, 53) color: rgb(56, 35, 53)
CMYK cmyk(0%, 38%, 5%, 78%)
HSV hsv(309, 38%, 22%)
HWB hwb(309 14% 78%) color: hwb(309 14% 78%)
OKLCH oklch(0.2898 0.0436 331.78) color: oklch(0.2898 0.0436 331.78)
Lab lab(16.99 13.59 -7.67) color: lab(16.99 13.59 -7.67)
LCH lch(16.99 15.61 330.56) color: lch(16.99 15.61 330.56)

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 14.38:1
vs Black 1.46: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)

#2F2F31 — rgb(47, 47, 49)

Deuteranopia (Green-blind)

#303230 — rgb(48, 50, 48)

Tritanopia (Blue-blind)

#372D2C — rgb(55, 45, 44)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(311, 23%, 18%);

text

color: hsl(311, 23%, 18%);

border

border: 2px solid hsl(311, 23%, 18%);

gradient light

background: linear-gradient(to right, hsl(311, 23%, 38%), hsl(311, 23%, 18%));

gradient dark

background: linear-gradient(to right, hsl(311, 23%, 18%), hsl(311, 23%, 0%))

hex

background-color: #382335;

tailwind

bg-[hsl(311,23%,18%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(311, 23%, 18%, 0.4);

css variable

--color-primary: hsl(311, 23%, 18%);

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(311, 23%, 18%)?

HEX: #382335 | RGB: rgb(56, 35, 53) | CMYK: 0%, 38%, 5%, 78% | HSV: 309°, 38%, 22%. Copy any format from the conversion table above.

What colors go well with #382335?

The complementary color is HSL(131, 23%, 18%). For a triadic harmony, use hues 311°, 71°, and 191°. For analogous combinations, try hues 281° and 341°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(311, 23%, 18%) in CSS?

As HSL: color: hsl(311, 23%, 18%); — As HEX: color: #382335; — As RGB: color: rgb(56, 35, 53); — Tailwind CSS: bg-[hsl(311,23%,18%)] — CSS variable: --color-primary: hsl(311, 23%, 18%);