HSL(295, 22%, 42%)

Purple — Purple color

Adjust Color

Color Information

Color Name

Purple

Color Family

Purple

Warm / Cool

🔵 Cool

Temperature

6500K

CSS Class

bg-[hsl(295,22%,42%)]

Color Conversions

Format Value CSS Usage
HSL hsl(295, 22%, 42%) color: hsl(295, 22%, 42%)
HEX #7F5483 color: #7F5483
RGB rgb(127, 84, 131) color: rgb(127, 84, 131)
CMYK cmyk(3%, 36%, 0%, 49%)
HSV hsv(295, 36%, 51%)
HWB hwb(295 33% 49%) color: hwb(295 33% 49%)
OKLCH oklch(0.5104 0.0885 323.79) color: oklch(0.5104 0.0885 323.79)
Lab lab(41.99 26.24 -19.19) color: lab(41.99 26.24 -19.19)
LCH lch(41.99 32.51 323.82) color: lch(41.99 32.51 323.82)

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

#6C6C78 — rgb(108, 108, 120)

Deuteranopia (Green-blind)

#6F7275 — rgb(111, 114, 117)

Tritanopia (Blue-blind)

#7D6F6D — rgb(125, 111, 109)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(295, 22%, 42%);

text

color: hsl(295, 22%, 42%);

border

border: 2px solid hsl(295, 22%, 42%);

gradient light

background: linear-gradient(to right, hsl(295, 22%, 62%), hsl(295, 22%, 42%));

gradient dark

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

hex

background-color: #7F5483;

tailwind

bg-[hsl(295,22%,42%)]

box shadow

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

css variable

--color-primary: hsl(295, 22%, 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(295, 22%, 42%)?

HEX: #7F5483 | RGB: rgb(127, 84, 131) | CMYK: 3%, 36%, 0%, 49% | HSV: 295°, 36%, 51%. Copy any format from the conversion table above.

What colors go well with #7F5483?

The complementary color is HSL(115, 22%, 42%). For a triadic harmony, use hues 295°, 55°, and 175°. For analogous combinations, try hues 265° and 325°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(295, 22%, 42%) in CSS?

As HSL: color: hsl(295, 22%, 42%); — As HEX: color: #7F5483; — As RGB: color: rgb(127, 84, 131); — Tailwind CSS: bg-[hsl(295,22%,42%)] — CSS variable: --color-primary: hsl(295, 22%, 42%);