HSL(310, 40%, 59%)

Purple — Purple color

Adjust Color

Color Information

Color Name

Purple

Color Family

Purple

Warm / Cool

🔴 Warm

Temperature

6500K

CSS Class

bg-[hsl(310,40%,59%)]

Color Conversions

Format Value CSS Usage
HSL hsl(310, 40%, 59%) color: hsl(310, 40%, 59%)
HEX #C06DB2 color: #C06DB2
RGB rgb(192, 109, 178) color: rgb(192, 109, 178)
CMYK cmyk(0%, 43%, 7%, 25%)
HSV hsv(310, 43%, 75%)
HWB hwb(310 43% 25%) color: hwb(310 43% 25%)
OKLCH oklch(0.6502 0.1367 333.53) color: oklch(0.6502 0.1367 333.53)
Lab lab(57.42 42.72 -22.55) color: lab(57.42 42.72 -22.55)
LCH lch(57.42 48.31 332.17) color: lch(57.42 48.31 332.17)

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 3.46:1
vs Black 6.07:1

AA Normal (4.5:1)

on White: FAIL ✗ on Black: PASS ✓

AA Large (3:1)

on White: PASS ✓ on Black: PASS ✓

AAA Normal (7:1)

on White: FAIL ✗

Best text on this color: black

Color Blindness Simulation

Protanopia (Red-blind)

#9C9BA1 — rgb(156, 155, 161)

Deuteranopia (Green-blind)

#A1A79D — rgb(161, 167, 157)

Tritanopia (Blue-blind)

#BC9491 — rgb(188, 148, 145)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(310, 40%, 59%);

text

color: hsl(310, 40%, 59%);

border

border: 2px solid hsl(310, 40%, 59%);

gradient light

background: linear-gradient(to right, hsl(310, 40%, 79%), hsl(310, 40%, 59%));

gradient dark

background: linear-gradient(to right, hsl(310, 40%, 59%), hsl(310, 40%, 39%))

hex

background-color: #C06DB2;

tailwind

bg-[hsl(310,40%,59%)]

box shadow

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

css variable

--color-primary: hsl(310, 40%, 59%);

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, 40%, 59%)?

HEX: #C06DB2 | RGB: rgb(192, 109, 178) | CMYK: 0%, 43%, 7%, 25% | HSV: 310°, 43%, 75%. Copy any format from the conversion table above.

What colors go well with #C06DB2?

The complementary color is HSL(130, 40%, 59%). 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, 40%, 59%) in CSS?

As HSL: color: hsl(310, 40%, 59%); — As HEX: color: #C06DB2; — As RGB: color: rgb(192, 109, 178); — Tailwind CSS: bg-[hsl(310,40%,59%)] — CSS variable: --color-primary: hsl(310, 40%, 59%);