HSL(2, 40%, 35%)
Red — Red color
Adjust Color
Color Information
Color Name
Red
Color Family
Red
Warm / Cool
🔴 Warm
Temperature
2000K
CSS Class
bg-[hsl(2,40%,35%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(2, 40%, 35%) | color: hsl(2, 40%, 35%) | |
| HEX | #7D3836 | color: #7D3836 | |
| RGB | rgb(125, 56, 54) | color: rgb(125, 56, 54) | |
| CMYK | cmyk(0%, 55%, 57%, 51%) | — | |
| HSV | hsv(2, 57%, 49%) | — | |
| HWB | hwb(2 21% 51%) | color: hwb(2 21% 51%) | |
| OKLCH | oklch(0.4323 0.0966 23.61) | color: oklch(0.4323 0.0966 23.61) | |
| Lab | lab(32.82 29.76 15.68) | color: lab(32.82 29.76 15.68) | |
| LCH | lch(32.82 33.64 27.78) | color: lch(32.82 33.64 27.78) |
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)
#5F5F36 — rgb(95, 95, 54)
Deuteranopia (Green-blind)
#636837 — rgb(99, 104, 55)
Tritanopia (Blue-blind)
#7A3737 — rgb(122, 55, 55)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(2, 40%, 35%);
text
color: hsl(2, 40%, 35%);
border
border: 2px solid hsl(2, 40%, 35%);
gradient light
background: linear-gradient(to right, hsl(2, 40%, 55%), hsl(2, 40%, 35%));
gradient dark
background: linear-gradient(to right, hsl(2, 40%, 35%), hsl(2, 40%, 15%))
hex
background-color: #7D3836;
tailwind
bg-[hsl(2,40%,35%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(2, 40%, 35%, 0.4);
css variable
--color-primary: hsl(2, 40%, 35%);
Related Colors
Use Cases for Red
Frequently Asked Questions
What are all the color codes for HSL(2, 40%, 35%)?
HEX: #7D3836 | RGB: rgb(125, 56, 54) | CMYK: 0%, 55%, 57%, 51% | HSV: 2°, 57%, 49%. Copy any format from the conversion table above.
What colors go well with #7D3836?
The complementary color is HSL(182, 40%, 35%). 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, 40%, 35%) in CSS?
As HSL: color: hsl(2, 40%, 35%); — As HEX: color: #7D3836; — As RGB: color: rgb(125, 56, 54); — Tailwind CSS: bg-[hsl(2,40%,35%)] — CSS variable: --color-primary: hsl(2, 40%, 35%);