HSL(297, 74%, 17%)

Purple — Purple color

Adjust Color

Color Information

Color Name

Purple

Color Family

Purple

Warm / Cool

🔵 Cool

Temperature

6500K

CSS Class

bg-[hsl(297,74%,17%)]

Color Conversions

Format Value CSS Usage
HSL hsl(297, 74%, 17%) color: hsl(297, 74%, 17%)
HEX #480B4B color: #480B4B
RGB rgb(72, 11, 75) color: rgb(72, 11, 75)
CMYK cmyk(4%, 85%, 0%, 71%)
HSV hsv(297, 85%, 29%)
HWB hwb(297 4% 71%) color: hwb(297 4% 71%)
OKLCH oklch(0.2929 0.1202 325.99) color: oklch(0.2929 0.1202 325.99)
Lab lab(16.13 36.31 -24.15) color: lab(16.13 36.31 -24.15)
LCH lch(16.13 43.61 326.37) color: lch(16.13 43.61 326.37)

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.74:1
vs Black 1.43: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)

#2E2D3C — rgb(46, 45, 60)

Deuteranopia (Green-blind)

#313638 — rgb(49, 54, 56)

Tritanopia (Blue-blind)

#452F2D — rgb(69, 47, 45)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(297, 74%, 17%);

text

color: hsl(297, 74%, 17%);

border

border: 2px solid hsl(297, 74%, 17%);

gradient light

background: linear-gradient(to right, hsl(297, 74%, 37%), hsl(297, 74%, 17%));

gradient dark

background: linear-gradient(to right, hsl(297, 74%, 17%), hsl(297, 74%, 0%))

hex

background-color: #480B4B;

tailwind

bg-[hsl(297,74%,17%)]

box shadow

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

css variable

--color-primary: hsl(297, 74%, 17%);

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(297, 74%, 17%)?

HEX: #480B4B | RGB: rgb(72, 11, 75) | CMYK: 4%, 85%, 0%, 71% | HSV: 297°, 85%, 29%. Copy any format from the conversion table above.

What colors go well with #480B4B?

The complementary color is HSL(117, 74%, 17%). For a triadic harmony, use hues 297°, 57°, and 177°. For analogous combinations, try hues 267° and 327°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(297, 74%, 17%) in CSS?

As HSL: color: hsl(297, 74%, 17%); — As HEX: color: #480B4B; — As RGB: color: rgb(72, 11, 75); — Tailwind CSS: bg-[hsl(297,74%,17%)] — CSS variable: --color-primary: hsl(297, 74%, 17%);