HSL(310, 70%, 42%)

Purple — Purple color

Adjust Color

Color Information

Color Name

Purple

Color Family

Purple

Warm / Cool

🔴 Warm

Temperature

6500K

CSS Class

bg-[hsl(310,70%,42%)]

Color Conversions

Format Value CSS Usage
HSL hsl(310, 70%, 42%) color: hsl(310, 70%, 42%)
HEX #B6209D color: #B6209D
RGB rgb(182, 32, 157) color: rgb(182, 32, 157)
CMYK cmyk(0%, 82%, 14%, 29%)
HSV hsv(310, 82%, 71%)
HWB hwb(310 13% 29%) color: hwb(310 13% 29%)
OKLCH oklch(0.5411 0.219 336.4) color: oklch(0.5411 0.219 336.4)
Lab lab(43.38 68.18 -32.12) color: lab(43.38 68.18 -32.12)
LCH lch(43.38 75.37 334.77) color: lch(43.38 75.37 334.77)

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 5.7:1
vs Black 3.68: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)

#75747F — rgb(117, 116, 127)

Deuteranopia (Green-blind)

#7E8978 — rgb(126, 137, 120)

Tritanopia (Blue-blind)

#AF6762 — rgb(175, 103, 98)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(310, 70%, 42%);

text

color: hsl(310, 70%, 42%);

border

border: 2px solid hsl(310, 70%, 42%);

gradient light

background: linear-gradient(to right, hsl(310, 70%, 62%), hsl(310, 70%, 42%));

gradient dark

background: linear-gradient(to right, hsl(310, 70%, 42%), hsl(310, 70%, 22%))

hex

background-color: #B6209D;

tailwind

bg-[hsl(310,70%,42%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(310, 70%, 42%, 0.4);

css variable

--color-primary: hsl(310, 70%, 42%);

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(310, 70%, 42%)?

HEX: #B6209D | RGB: rgb(182, 32, 157) | CMYK: 0%, 82%, 14%, 29% | HSV: 310°, 82%, 71%. Copy any format from the conversion table above.

What colors go well with #B6209D?

The complementary color is HSL(130, 70%, 42%). For a triadic harmony, use hues 310°, 70°, and 190°. For analogous combinations, try hues 280° and 340°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(310, 70%, 42%) in CSS?

As HSL: color: hsl(310, 70%, 42%); — As HEX: color: #B6209D; — As RGB: color: rgb(182, 32, 157); — Tailwind CSS: bg-[hsl(310,70%,42%)] — CSS variable: --color-primary: hsl(310, 70%, 42%);