HSL(335, 72%, 40%)

Pink — Pink color

Adjust Color

Color Information

Color Name

Pink

Color Family

Pink

Warm / Cool

🔴 Warm

Temperature

2000K

CSS Class

bg-[hsl(335,72%,40%)]

Color Conversions

Format Value CSS Usage
HSL hsl(335, 72%, 40%) color: hsl(335, 72%, 40%)
HEX #AF1D5A color: #AF1D5A
RGB rgb(175, 29, 90) color: rgb(175, 29, 90)
CMYK cmyk(0%, 83%, 49%, 31%)
HSV hsv(335, 83%, 69%)
HWB hwb(335 12% 31%) color: hwb(335 12% 31%)
OKLCH oklch(0.4992 0.1832 2.42) color: oklch(0.4992 0.1832 2.42)
Lab lab(39.13 59.6 2.78) color: lab(39.13 59.6 2.78)
LCH lch(39.13 59.66 2.67) color: lch(39.13 59.66 2.67)

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 6.67:1
vs Black 3.15:1

AA Normal (4.5:1)

on White: PASS ✓ on Black: FAIL ✗

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)

#706E4B — rgb(112, 110, 75)

Deuteranopia (Green-blind)

#788348 — rgb(120, 131, 72)

Tritanopia (Blue-blind)

#A8403D — rgb(168, 64, 61)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(335, 72%, 40%);

text

color: hsl(335, 72%, 40%);

border

border: 2px solid hsl(335, 72%, 40%);

gradient light

background: linear-gradient(to right, hsl(335, 72%, 60%), hsl(335, 72%, 40%));

gradient dark

background: linear-gradient(to right, hsl(335, 72%, 40%), hsl(335, 72%, 20%))

hex

background-color: #AF1D5A;

tailwind

bg-[hsl(335,72%,40%)]

box shadow

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

css variable

--color-primary: hsl(335, 72%, 40%);

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(335, 72%, 40%)?

HEX: #AF1D5A | RGB: rgb(175, 29, 90) | CMYK: 0%, 83%, 49%, 31% | HSV: 335°, 83%, 69%. Copy any format from the conversion table above.

What colors go well with #AF1D5A?

The complementary color is HSL(155, 72%, 40%). For a triadic harmony, use hues 335°, 95°, and 215°. For analogous combinations, try hues 305° and 5°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(335, 72%, 40%) in CSS?

As HSL: color: hsl(335, 72%, 40%); — As HEX: color: #AF1D5A; — As RGB: color: rgb(175, 29, 90); — Tailwind CSS: bg-[hsl(335,72%,40%)] — CSS variable: --color-primary: hsl(335, 72%, 40%);