HSL(304, 42%, 64%)

Purple — Purple color

Adjust Color

Color Information

Color Name

Purple

Color Family

Purple

Warm / Cool

🔴 Warm

Temperature

6500K

CSS Class

bg-[hsl(304,42%,64%)]

Color Conversions

Format Value CSS Usage
HSL hsl(304, 42%, 64%) color: hsl(304, 42%, 64%)
HEX #CA7DC5 color: #CA7DC5
RGB rgb(202, 125, 197) color: rgb(202, 125, 197)
CMYK cmyk(0%, 38%, 2%, 21%)
HSV hsv(304, 38%, 79%)
HWB hwb(304 49% 21%) color: hwb(304 49% 21%)
OKLCH oklch(0.6951 0.1332 329.21) color: oklch(0.6951 0.1332 329.21)
Lab lab(62.72 40.81 -25.12) color: lab(62.72 40.81 -25.12)
LCH lch(62.72 47.92 328.39) color: lch(62.72 47.92 328.39)

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 2.9:1
vs Black 7.25:1

AA Normal (4.5:1)

on White: FAIL ✗ on Black: PASS ✓

AA Large (3:1)

on White: FAIL ✗ on Black: PASS ✓

AAA Normal (7:1)

on White: FAIL ✗

Best text on this color: black

Color Blindness Simulation

Protanopia (Red-blind)

#A9A8B4 — rgb(169, 168, 180)

Deuteranopia (Green-blind)

#ADB3AF — rgb(173, 179, 175)

Tritanopia (Blue-blind)

#C6A6A3 — rgb(198, 166, 163)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(304, 42%, 64%);

text

color: hsl(304, 42%, 64%);

border

border: 2px solid hsl(304, 42%, 64%);

gradient light

background: linear-gradient(to right, hsl(304, 42%, 84%), hsl(304, 42%, 64%));

gradient dark

background: linear-gradient(to right, hsl(304, 42%, 64%), hsl(304, 42%, 44%))

hex

background-color: #CA7DC5;

tailwind

bg-[hsl(304,42%,64%)]

box shadow

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

css variable

--color-primary: hsl(304, 42%, 64%);

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(304, 42%, 64%)?

HEX: #CA7DC5 | RGB: rgb(202, 125, 197) | CMYK: 0%, 38%, 2%, 21% | HSV: 304°, 38%, 79%. Copy any format from the conversion table above.

What colors go well with #CA7DC5?

The complementary color is HSL(124, 42%, 64%). For a triadic harmony, use hues 304°, 64°, and 184°. For analogous combinations, try hues 274° and 334°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(304, 42%, 64%) in CSS?

As HSL: color: hsl(304, 42%, 64%); — As HEX: color: #CA7DC5; — As RGB: color: rgb(202, 125, 197); — Tailwind CSS: bg-[hsl(304,42%,64%)] — CSS variable: --color-primary: hsl(304, 42%, 64%);