HSL(318, 40%, 51%)

Pink — Pink color

Adjust Color

Color Information

Color Name

Pink

Color Family

Pink

Warm / Cool

🔴 Warm

Temperature

6500K

CSS Class

bg-[hsl(318,40%,51%)]

Color Conversions

Format Value CSS Usage
HSL hsl(318, 40%, 51%) color: hsl(318, 40%, 51%)
HEX #B45096 color: #B45096
RGB rgb(180, 80, 150) color: rgb(180, 80, 150)
CMYK cmyk(0%, 56%, 17%, 29%)
HSV hsv(318, 56%, 71%)
HWB hwb(318 31% 29%) color: hwb(318 31% 29%)
OKLCH oklch(0.5809 0.1539 340.52) color: oklch(0.5809 0.1539 340.52)
Lab lab(49.06 49.04 -19.14) color: lab(49.06 49.04 -19.14)
LCH lch(49.06 52.64 338.68) color: lch(49.06 52.64 338.68)

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 4.64:1
vs Black 4.53:1

AA Normal (4.5:1)

on White: PASS ✓ 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: white

Color Blindness Simulation

Protanopia (Red-blind)

#898885 — rgb(137, 136, 133)

Deuteranopia (Green-blind)

#8F9681 — rgb(143, 150, 129)

Tritanopia (Blue-blind)

#AF7875 — rgb(175, 120, 117)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(318, 40%, 51%);

text

color: hsl(318, 40%, 51%);

border

border: 2px solid hsl(318, 40%, 51%);

gradient light

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

gradient dark

background: linear-gradient(to right, hsl(318, 40%, 51%), hsl(318, 40%, 31%))

hex

background-color: #B45096;

tailwind

bg-[hsl(318,40%,51%)]

box shadow

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

css variable

--color-primary: hsl(318, 40%, 51%);

Related Colors

Use Cases for Pink

Beauty & cosmetics Fashion brands Romantic themes Valentine campaigns Playful UI

Frequently Asked Questions

What are all the color codes for HSL(318, 40%, 51%)?

HEX: #B45096 | RGB: rgb(180, 80, 150) | CMYK: 0%, 56%, 17%, 29% | HSV: 318°, 56%, 71%. Copy any format from the conversion table above.

What colors go well with #B45096?

The complementary color is HSL(138, 40%, 51%). For a triadic harmony, use hues 318°, 78°, and 198°. For analogous combinations, try hues 288° and 348°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(318, 40%, 51%) in CSS?

As HSL: color: hsl(318, 40%, 51%); — As HEX: color: #B45096; — As RGB: color: rgb(180, 80, 150); — Tailwind CSS: bg-[hsl(318,40%,51%)] — CSS variable: --color-primary: hsl(318, 40%, 51%);