HSL(302, 20%, 57%)

Purple — Purple color

Adjust Color

Color Information

Color Name

Purple

Color Family

Purple

Warm / Cool

🔴 Warm

Temperature

6500K

CSS Class

bg-[hsl(302,20%,57%)]

Color Conversions

Format Value CSS Usage
HSL hsl(302, 20%, 57%) color: hsl(302, 20%, 57%)
HEX #A77BA6 color: #A77BA6
RGB rgb(167, 123, 166) color: rgb(167, 123, 166)
CMYK cmyk(0%, 26%, 1%, 35%)
HSV hsv(301, 26%, 65%)
HWB hwb(301 48% 35%) color: hwb(301 48% 35%)
OKLCH oklch(0.6407 0.0808 327.21) color: oklch(0.6407 0.0808 327.21)
Lab lab(57.21 24.51 -16.23) color: lab(57.21 24.51 -16.23)
LCH lch(57.21 29.4 326.49) color: lch(57.21 29.4 326.49)

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.48:1
vs Black 6.03: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)

#94949C — rgb(148, 148, 156)

Deuteranopia (Green-blind)

#979A99 — rgb(151, 154, 153)

Tritanopia (Blue-blind)

#A59392 — rgb(165, 147, 146)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(302, 20%, 57%);

text

color: hsl(302, 20%, 57%);

border

border: 2px solid hsl(302, 20%, 57%);

gradient light

background: linear-gradient(to right, hsl(302, 20%, 77%), hsl(302, 20%, 57%));

gradient dark

background: linear-gradient(to right, hsl(302, 20%, 57%), hsl(302, 20%, 37%))

hex

background-color: #A77BA6;

tailwind

bg-[hsl(302,20%,57%)]

box shadow

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

css variable

--color-primary: hsl(302, 20%, 57%);

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, 20%, 57%)?

HEX: #A77BA6 | RGB: rgb(167, 123, 166) | CMYK: 0%, 26%, 1%, 35% | HSV: 301°, 26%, 65%. Copy any format from the conversion table above.

What colors go well with #A77BA6?

The complementary color is HSL(122, 20%, 57%). 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, 20%, 57%) in CSS?

As HSL: color: hsl(302, 20%, 57%); — As HEX: color: #A77BA6; — As RGB: color: rgb(167, 123, 166); — Tailwind CSS: bg-[hsl(302,20%,57%)] — CSS variable: --color-primary: hsl(302, 20%, 57%);