HSL(312, 40%, 67%)

Purple — Purple color

Adjust Color

Color Information

Color Name

Purple

Color Family

Purple

Warm / Cool

🔴 Warm

Temperature

6500K

CSS Class

bg-[hsl(312,40%,67%)]

Color Conversions

Format Value CSS Usage
HSL hsl(312, 40%, 67%) color: hsl(312, 40%, 67%)
HEX #CD89BF color: #CD89BF
RGB rgb(205, 137, 191) color: rgb(205, 137, 191)
CMYK cmyk(0%, 33%, 7%, 20%)
HSV hsv(312, 33%, 80%)
HWB hwb(312 54% 20%) color: hwb(312 54% 20%)
OKLCH oklch(0.7158 0.1087 334.35) color: oklch(0.7158 0.1087 334.35)
Lab lab(65.46 34.26 -17.54) color: lab(65.46 34.26 -17.54)
LCH lch(65.46 38.49 332.89) color: lch(65.46 38.49 332.89)

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

#B0AFB2 — rgb(176, 175, 178)

Deuteranopia (Green-blind)

#B4B9AF — rgb(180, 185, 175)

Tritanopia (Blue-blind)

#CAA8A5 — rgb(202, 168, 165)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(312, 40%, 67%);

text

color: hsl(312, 40%, 67%);

border

border: 2px solid hsl(312, 40%, 67%);

gradient light

background: linear-gradient(to right, hsl(312, 40%, 87%), hsl(312, 40%, 67%));

gradient dark

background: linear-gradient(to right, hsl(312, 40%, 67%), hsl(312, 40%, 47%))

hex

background-color: #CD89BF;

tailwind

bg-[hsl(312,40%,67%)]

box shadow

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

css variable

--color-primary: hsl(312, 40%, 67%);

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(312, 40%, 67%)?

HEX: #CD89BF | RGB: rgb(205, 137, 191) | CMYK: 0%, 33%, 7%, 20% | HSV: 312°, 33%, 80%. Copy any format from the conversion table above.

What colors go well with #CD89BF?

The complementary color is HSL(132, 40%, 67%). For a triadic harmony, use hues 312°, 72°, and 192°. For analogous combinations, try hues 282° and 342°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(312, 40%, 67%) in CSS?

As HSL: color: hsl(312, 40%, 67%); — As HEX: color: #CD89BF; — As RGB: color: rgb(205, 137, 191); — Tailwind CSS: bg-[hsl(312,40%,67%)] — CSS variable: --color-primary: hsl(312, 40%, 67%);