HSL(2, 97%, 34%)
Red — Red color
Adjust Color
Color Information
Color Name
Red
Color Family
Red
Warm / Cool
🔴 Warm
Temperature
2000K
CSS Class
bg-[hsl(2,97%,34%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(2, 97%, 34%) | color: hsl(2, 97%, 34%) | |
| HEX | #AB0803 | color: #AB0803 | |
| RGB | rgb(171, 8, 3) | color: rgb(171, 8, 3) | |
| CMYK | cmyk(0%, 95%, 98%, 33%) | — | |
| HSV | hsv(2, 98%, 67%) | — | |
| HWB | hwb(2 1% 33%) | color: hwb(2 1% 33%) | |
| OKLCH | oklch(0.4681 0.1884 29.43) | color: oklch(0.4681 0.1884 29.43) | |
| Lab | lab(35.68 58.42 48.6) | color: lab(35.68 58.42 48.6) | |
| LCH | lch(35.68 75.99 39.76) | color: lch(35.68 75.99 39.76) |
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)
#646304 — rgb(100, 99, 4)
Deuteranopia (Green-blind)
#6E7A05 — rgb(110, 122, 5)
Tritanopia (Blue-blind)
#A30505 — rgb(163, 5, 5)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(2, 97%, 34%);
text
color: hsl(2, 97%, 34%);
border
border: 2px solid hsl(2, 97%, 34%);
gradient light
background: linear-gradient(to right, hsl(2, 97%, 54%), hsl(2, 97%, 34%));
gradient dark
background: linear-gradient(to right, hsl(2, 97%, 34%), hsl(2, 97%, 14%))
hex
background-color: #AB0803;
tailwind
bg-[hsl(2,97%,34%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(2, 97%, 34%, 0.4);
css variable
--color-primary: hsl(2, 97%, 34%);
Related Colors
Use Cases for Red
Frequently Asked Questions
What are all the color codes for HSL(2, 97%, 34%)?
HEX: #AB0803 | RGB: rgb(171, 8, 3) | CMYK: 0%, 95%, 98%, 33% | HSV: 2°, 98%, 67%. Copy any format from the conversion table above.
What colors go well with #AB0803?
The complementary color is HSL(182, 97%, 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, 97%, 34%) in CSS?
As HSL: color: hsl(2, 97%, 34%); — As HEX: color: #AB0803; — As RGB: color: rgb(171, 8, 3); — Tailwind CSS: bg-[hsl(2,97%,34%)] — CSS variable: --color-primary: hsl(2, 97%, 34%);