HSL(308, 40%, 71%)

Purple — Purple color

Adjust Color

Color Information

Color Name

Purple

Color Family

Purple

Warm / Cool

🔴 Warm

Temperature

6500K

CSS Class

bg-[hsl(308,40%,71%)]

Color Conversions

Format Value CSS Usage
HSL hsl(308, 40%, 71%) color: hsl(308, 40%, 71%)
HEX #D397CB color: #D397CB
RGB rgb(211, 151, 203) color: rgb(211, 151, 203)
CMYK cmyk(0%, 28%, 4%, 17%)
HSV hsv(308, 28%, 83%)
HWB hwb(308 60% 17%) color: hwb(308 60% 17%)
OKLCH oklch(0.7507 0.0992 331.21) color: oklch(0.7507 0.0992 331.21)
Lab lab(69.68 30.82 -17.78) color: lab(69.68 30.82 -17.78)
LCH lch(69.68 35.58 330.02) color: lch(69.68 35.58 330.02)

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.32:1
vs Black 9.06: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)

#B9B8BE — rgb(185, 184, 190)

Deuteranopia (Green-blind)

#BDC1BB — rgb(189, 193, 187)

Tritanopia (Blue-blind)

#D0B4B2 — rgb(208, 180, 178)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(308, 40%, 71%);

text

color: hsl(308, 40%, 71%);

border

border: 2px solid hsl(308, 40%, 71%);

gradient light

background: linear-gradient(to right, hsl(308, 40%, 91%), hsl(308, 40%, 71%));

gradient dark

background: linear-gradient(to right, hsl(308, 40%, 71%), hsl(308, 40%, 51%))

hex

background-color: #D397CB;

tailwind

bg-[hsl(308,40%,71%)]

box shadow

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

css variable

--color-primary: hsl(308, 40%, 71%);

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(308, 40%, 71%)?

HEX: #D397CB | RGB: rgb(211, 151, 203) | CMYK: 0%, 28%, 4%, 17% | HSV: 308°, 28%, 83%. Copy any format from the conversion table above.

What colors go well with #D397CB?

The complementary color is HSL(128, 40%, 71%). For a triadic harmony, use hues 308°, 68°, and 188°. For analogous combinations, try hues 278° and 338°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(308, 40%, 71%) in CSS?

As HSL: color: hsl(308, 40%, 71%); — As HEX: color: #D397CB; — As RGB: color: rgb(211, 151, 203); — Tailwind CSS: bg-[hsl(308,40%,71%)] — CSS variable: --color-primary: hsl(308, 40%, 71%);