HSL(338, 87%, 21%)
Pink — Pink color
Adjust Color
Color Information
Color Name
Pink
Color Family
Pink
Warm / Cool
🔴 Warm
Temperature
2000K
CSS Class
bg-[hsl(338,87%,21%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(338, 87%, 21%) | color: hsl(338, 87%, 21%) | |
| HEX | #640729 | color: #640729 | |
| RGB | rgb(100, 7, 41) | color: rgb(100, 7, 41) | |
| CMYK | cmyk(0%, 93%, 59%, 61%) | — | |
| HSV | hsv(338, 93%, 39%) | — | |
| HWB | hwb(338 3% 61%) | color: hwb(338 3% 61%) | |
| OKLCH | oklch(0.3276 0.1241 7.54) | color: oklch(0.3276 0.1241 7.54) | |
| Lab | lab(20.13 40.34 6.39) | color: lab(20.13 40.34 6.39) | |
| LCH | lch(20.13 40.84 9) | color: lch(20.13 40.84 9) |
Color Theory
Accessibility (WCAG)
White text on color
Black text on color
Colored text
Contrast Ratios
AA Normal (4.5:1)
AA Large (3:1)
AAA Normal (7:1)
Best text on this color: white
Color Blindness Simulation
Protanopia (Red-blind)
#3C3B21 — rgb(60, 59, 33)
Deuteranopia (Green-blind)
#41481F — rgb(65, 72, 31)
Tritanopia (Blue-blind)
#5F1A19 — rgb(95, 26, 25)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(338, 87%, 21%);
text
color: hsl(338, 87%, 21%);
border
border: 2px solid hsl(338, 87%, 21%);
gradient light
background: linear-gradient(to right, hsl(338, 87%, 41%), hsl(338, 87%, 21%));
gradient dark
background: linear-gradient(to right, hsl(338, 87%, 21%), hsl(338, 87%, 1%))
hex
background-color: #640729;
tailwind
bg-[hsl(338,87%,21%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(338, 87%, 21%, 0.4);
css variable
--color-primary: hsl(338, 87%, 21%);
Related Colors
Use Cases for Pink
Frequently Asked Questions
What are all the color codes for HSL(338, 87%, 21%)?
HEX: #640729 | RGB: rgb(100, 7, 41) | CMYK: 0%, 93%, 59%, 61% | HSV: 338°, 93%, 39%. Copy any format from the conversion table above.
What colors go well with #640729?
The complementary color is HSL(158, 87%, 21%). For a triadic harmony, use hues 338°, 98°, and 218°. For analogous combinations, try hues 308° and 8°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(338, 87%, 21%) in CSS?
As HSL: color: hsl(338, 87%, 21%); — As HEX: color: #640729; — As RGB: color: rgb(100, 7, 41); — Tailwind CSS: bg-[hsl(338,87%,21%)] — CSS variable: --color-primary: hsl(338, 87%, 21%);