HSL(313, 40%, 74%)

Purple — Purple color

Adjust Color

Color Information

Color Name

Purple

Color Family

Purple

Warm / Cool

🔴 Warm

Temperature

6500K

CSS Class

bg-[hsl(313,40%,74%)]

Color Conversions

Format Value CSS Usage
HSL hsl(313, 40%, 74%) color: hsl(313, 40%, 74%)
HEX #D7A2CC color: #D7A2CC
RGB rgb(215, 162, 204) color: rgb(215, 162, 204)
CMYK cmyk(0%, 25%, 5%, 16%)
HSV hsv(312, 25%, 84%)
HWB hwb(312 63% 16%) color: hwb(312 63% 16%)
OKLCH oklch(0.7746 0.0835 333.83) color: oklch(0.7746 0.0835 333.83)
Lab lab(72.66 26.37 -13.8) color: lab(72.66 26.37 -13.8)
LCH lch(72.66 29.76 332.38) color: lch(72.66 29.76 332.38)

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.11:1
vs Black 9.93: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)

#C0C0C2 — rgb(192, 192, 194)

Deuteranopia (Green-blind)

#C3C7BF — rgb(195, 199, 191)

Tritanopia (Blue-blind)

#D4BAB8 — rgb(212, 186, 184)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(313, 40%, 74%);

text

color: hsl(313, 40%, 74%);

border

border: 2px solid hsl(313, 40%, 74%);

gradient light

background: linear-gradient(to right, hsl(313, 40%, 94%), hsl(313, 40%, 74%));

gradient dark

background: linear-gradient(to right, hsl(313, 40%, 74%), hsl(313, 40%, 54%))

hex

background-color: #D7A2CC;

tailwind

bg-[hsl(313,40%,74%)]

box shadow

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

css variable

--color-primary: hsl(313, 40%, 74%);

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(313, 40%, 74%)?

HEX: #D7A2CC | RGB: rgb(215, 162, 204) | CMYK: 0%, 25%, 5%, 16% | HSV: 312°, 25%, 84%. Copy any format from the conversion table above.

What colors go well with #D7A2CC?

The complementary color is HSL(133, 40%, 74%). For a triadic harmony, use hues 313°, 73°, and 193°. For analogous combinations, try hues 283° and 343°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(313, 40%, 74%) in CSS?

As HSL: color: hsl(313, 40%, 74%); — As HEX: color: #D7A2CC; — As RGB: color: rgb(215, 162, 204); — Tailwind CSS: bg-[hsl(313,40%,74%)] — CSS variable: --color-primary: hsl(313, 40%, 74%);