HSL(312, 74%, 39%)

Purple — Purple color

Adjust Color

Color Information

Color Name

Purple

Color Family

Purple

Warm / Cool

🔴 Warm

Temperature

6500K

CSS Class

bg-[hsl(312,74%,39%)]

Color Conversions

Format Value CSS Usage
HSL hsl(312, 74%, 39%) color: hsl(312, 74%, 39%)
HEX #AD1A90 color: #AD1A90
RGB rgb(173, 26, 144) color: rgb(173, 26, 144)
CMYK cmyk(0%, 85%, 17%, 32%)
HSV hsv(312, 85%, 68%)
HWB hwb(312 10% 32%) color: hwb(312 10% 32%)
OKLCH oklch(0.5164 0.2105 338.27) color: oklch(0.5164 0.2105 338.27)
Lab lab(40.64 65.81 -28.67) color: lab(40.64 65.81 -28.67)
LCH lch(40.64 71.78 336.46) color: lch(40.64 71.78 336.46)

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 6.31:1
vs Black 3.33: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)

#6D6C73 — rgb(109, 108, 115)

Deuteranopia (Green-blind)

#76816D — rgb(118, 129, 109)

Tritanopia (Blue-blind)

#A65D58 — rgb(166, 93, 88)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(312, 74%, 39%);

text

color: hsl(312, 74%, 39%);

border

border: 2px solid hsl(312, 74%, 39%);

gradient light

background: linear-gradient(to right, hsl(312, 74%, 59%), hsl(312, 74%, 39%));

gradient dark

background: linear-gradient(to right, hsl(312, 74%, 39%), hsl(312, 74%, 19%))

hex

background-color: #AD1A90;

tailwind

bg-[hsl(312,74%,39%)]

box shadow

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

css variable

--color-primary: hsl(312, 74%, 39%);

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(312, 74%, 39%)?

HEX: #AD1A90 | RGB: rgb(173, 26, 144) | CMYK: 0%, 85%, 17%, 32% | HSV: 312°, 85%, 68%. Copy any format from the conversion table above.

What colors go well with #AD1A90?

The complementary color is HSL(132, 74%, 39%). For a triadic harmony, use hues 312°, 72°, and 192°. For analogous combinations, try hues 282° and 342°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(312, 74%, 39%) in CSS?

As HSL: color: hsl(312, 74%, 39%); — As HEX: color: #AD1A90; — As RGB: color: rgb(173, 26, 144); — Tailwind CSS: bg-[hsl(312,74%,39%)] — CSS variable: --color-primary: hsl(312, 74%, 39%);