HSL(2, 52%, 34%)
Red — Red color
Adjust Color
Color Information
Color Name
Red
Color Family
Red
Warm / Cool
🔴 Warm
Temperature
2000K
CSS Class
bg-[hsl(2,52%,34%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(2, 52%, 34%) | color: hsl(2, 52%, 34%) | |
| HEX | #842D2A | color: #842D2A | |
| RGB | rgb(132, 45, 42) | color: rgb(132, 45, 42) | |
| CMYK | cmyk(0%, 66%, 68%, 48%) | — | |
| HSV | hsv(2, 68%, 52%) | — | |
| HWB | hwb(2 17% 48%) | color: hwb(2 17% 48%) | |
| OKLCH | oklch(0.4254 0.1204 25.57) | color: oklch(0.4254 0.1204 25.57) | |
| Lab | lab(31.7 37.14 22.1) | color: lab(31.7 37.14 22.1) | |
| LCH | lch(31.7 43.22 30.75) | color: lch(31.7 43.22 30.75) |
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)
#5E5E2B — rgb(94, 94, 43)
Deuteranopia (Green-blind)
#636A2B — rgb(99, 106, 43)
Tritanopia (Blue-blind)
#802B2B — rgb(128, 43, 43)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(2, 52%, 34%);
text
color: hsl(2, 52%, 34%);
border
border: 2px solid hsl(2, 52%, 34%);
gradient light
background: linear-gradient(to right, hsl(2, 52%, 54%), hsl(2, 52%, 34%));
gradient dark
background: linear-gradient(to right, hsl(2, 52%, 34%), hsl(2, 52%, 14%))
hex
background-color: #842D2A;
tailwind
bg-[hsl(2,52%,34%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(2, 52%, 34%, 0.4);
css variable
--color-primary: hsl(2, 52%, 34%);
Related Colors
Use Cases for Red
Frequently Asked Questions
What are all the color codes for HSL(2, 52%, 34%)?
HEX: #842D2A | RGB: rgb(132, 45, 42) | CMYK: 0%, 66%, 68%, 48% | HSV: 2°, 68%, 52%. Copy any format from the conversion table above.
What colors go well with #842D2A?
The complementary color is HSL(182, 52%, 34%). For a triadic harmony, use hues 2°, 122°, and 242°. For analogous combinations, try hues 332° and 32°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(2, 52%, 34%) in CSS?
As HSL: color: hsl(2, 52%, 34%); — As HEX: color: #842D2A; — As RGB: color: rgb(132, 45, 42); — Tailwind CSS: bg-[hsl(2,52%,34%)] — CSS variable: --color-primary: hsl(2, 52%, 34%);