HSL(302, 79%, 51%)

Purple — Purple color

Adjust Color

Color Information

Color Name

Purple

Color Family

Purple

Warm / Cool

🔴 Warm

Temperature

6500K

CSS Class

bg-[hsl(302,79%,51%)]

Color Conversions

Format Value CSS Usage
HSL hsl(302, 79%, 51%) color: hsl(302, 79%, 51%)
HEX #E51FDE color: #E51FDE
RGB rgb(229, 31, 222) color: rgb(229, 31, 222)
CMYK cmyk(0%, 86%, 3%, 10%)
HSV hsv(302, 86%, 90%)
HWB hwb(302 13% 10%) color: hwb(302 13% 10%)
OKLCH oklch(0.65 0.283 329.98) color: oklch(0.65 0.283 329.98)
Lab lab(54.99 86.56 -51.12) color: lab(54.99 86.56 -51.12)
LCH lch(54.99 100.53 329.44) color: lch(54.99 100.53 329.44)

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.76:1
vs Black 5.58: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)

#8F8DB0 — rgb(143, 141, 176)

Deuteranopia (Green-blind)

#9BAAA5 — rgb(155, 170, 165)

Tritanopia (Blue-blind)

#DB8B83 — rgb(219, 139, 131)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(302, 79%, 51%);

text

color: hsl(302, 79%, 51%);

border

border: 2px solid hsl(302, 79%, 51%);

gradient light

background: linear-gradient(to right, hsl(302, 79%, 71%), hsl(302, 79%, 51%));

gradient dark

background: linear-gradient(to right, hsl(302, 79%, 51%), hsl(302, 79%, 31%))

hex

background-color: #E51FDE;

tailwind

bg-[hsl(302,79%,51%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(302, 79%, 51%, 0.4);

css variable

--color-primary: hsl(302, 79%, 51%);

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(302, 79%, 51%)?

HEX: #E51FDE | RGB: rgb(229, 31, 222) | CMYK: 0%, 86%, 3%, 10% | HSV: 302°, 86%, 90%. Copy any format from the conversion table above.

What colors go well with #E51FDE?

The complementary color is HSL(122, 79%, 51%). For a triadic harmony, use hues 302°, 62°, and 182°. For analogous combinations, try hues 272° and 332°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(302, 79%, 51%) in CSS?

As HSL: color: hsl(302, 79%, 51%); — As HEX: color: #E51FDE; — As RGB: color: rgb(229, 31, 222); — Tailwind CSS: bg-[hsl(302,79%,51%)] — CSS variable: --color-primary: hsl(302, 79%, 51%);