HSL(317, 100%, 21%)

Pink — Pink color

Adjust Color

Color Information

Color Name

Pink

Color Family

Pink

Warm / Cool

🔴 Warm

Temperature

6500K

CSS Class

bg-[hsl(317,100%,21%)]

Color Conversions

Format Value CSS Usage
HSL hsl(317, 100%, 21%) color: hsl(317, 100%, 21%)
HEX #6B004D color: #6B004D
RGB rgb(107, 0, 77) color: rgb(107, 0, 77)
CMYK cmyk(0%, 100%, 28%, 58%)
HSV hsv(317, 100%, 42%)
HWB hwb(317 0% 58%) color: hwb(317 0% 58%)
OKLCH oklch(0.3522 0.15 344.54) color: oklch(0.3522 0.15 344.54)
Lab lab(22.52 47.49 -14.97) color: lab(22.52 47.49 -14.97)
LCH lch(22.52 49.79 342.5) color: lch(22.52 49.79 342.5)

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 12.12:1
vs Black 1.73:1

AA Normal (4.5:1)

on White: PASS ✓ on Black: FAIL ✗

AA Large (3:1)

on White: PASS ✓ on Black: FAIL ✗

AAA Normal (7:1)

on White: PASS ✓

Best text on this color: white

Color Blindness Simulation

Protanopia (Red-blind)

#3D3C3A — rgb(61, 60, 58)

Deuteranopia (Green-blind)

#434B36 — rgb(67, 75, 54)

Tritanopia (Blue-blind)

#662C28 — rgb(102, 44, 40)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(317, 100%, 21%);

text

color: hsl(317, 100%, 21%);

border

border: 2px solid hsl(317, 100%, 21%);

gradient light

background: linear-gradient(to right, hsl(317, 100%, 41%), hsl(317, 100%, 21%));

gradient dark

background: linear-gradient(to right, hsl(317, 100%, 21%), hsl(317, 100%, 1%))

hex

background-color: #6B004D;

tailwind

bg-[hsl(317,100%,21%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(317, 100%, 21%, 0.4);

css variable

--color-primary: hsl(317, 100%, 21%);

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(317, 100%, 21%)?

HEX: #6B004D | RGB: rgb(107, 0, 77) | CMYK: 0%, 100%, 28%, 58% | HSV: 317°, 100%, 42%. Copy any format from the conversion table above.

What colors go well with #6B004D?

The complementary color is HSL(137, 100%, 21%). For a triadic harmony, use hues 317°, 77°, and 197°. For analogous combinations, try hues 287° and 347°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(317, 100%, 21%) in CSS?

As HSL: color: hsl(317, 100%, 21%); — As HEX: color: #6B004D; — As RGB: color: rgb(107, 0, 77); — Tailwind CSS: bg-[hsl(317,100%,21%)] — CSS variable: --color-primary: hsl(317, 100%, 21%);