HSL(40, 80%, 50%)
Orange — Orange color
Adjust Color
Color Information
Color Name
Orange
Color Family
Orange
Warm / Cool
🔴 Warm
Temperature
2700K
CSS Class
bg-[hsl(40,80%,50%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(40, 80%, 50%) | color: hsl(40, 80%, 50%) | |
| HEX | #E6A21A | color: #E6A21A | |
| RGB | rgb(230, 162, 26) | color: rgb(230, 162, 26) | |
| CMYK | cmyk(0%, 30%, 89%, 10%) | — | |
| HSV | hsv(40, 89%, 90%) | — | |
| HWB | hwb(40 10% 10%) | color: hwb(40 10% 10%) | |
| OKLCH | oklch(0.7588 0.1533 77.35) | color: oklch(0.7588 0.1533 77.35) | |
| Lab | lab(71.38 15.2 71.23) | color: lab(71.38 15.2 71.23) | |
| LCH | lch(71.38 72.83 77.95) | color: lch(71.38 72.83 77.95) |
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: black
Color Blindness Simulation
Protanopia (Red-blind)
#C9C83B — rgb(201, 200, 59)
Deuteranopia (Green-blind)
#CDD243 — rgb(205, 210, 67)
Tritanopia (Blue-blind)
#E3555B — rgb(227, 85, 91)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(40, 80%, 50%);
text
color: hsl(40, 80%, 50%);
border
border: 2px solid hsl(40, 80%, 50%);
gradient light
background: linear-gradient(to right, hsl(40, 80%, 70%), hsl(40, 80%, 50%));
gradient dark
background: linear-gradient(to right, hsl(40, 80%, 50%), hsl(40, 80%, 30%))
hex
background-color: #E6A21A;
tailwind
bg-[hsl(40,80%,50%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(40, 80%, 50%, 0.4);
css variable
--color-primary: hsl(40, 80%, 50%);
Related Colors
Use Cases for Orange
Frequently Asked Questions
What are all the color codes for HSL(40, 80%, 50%)?
HEX: #E6A21A | RGB: rgb(230, 162, 26) | CMYK: 0%, 30%, 89%, 10% | HSV: 40°, 89%, 90%. Copy any format from the conversion table above.
What colors go well with #E6A21A?
The complementary color is HSL(220, 80%, 50%). For a triadic harmony, use hues 40°, 160°, and 280°. For analogous combinations, try hues 10° and 70°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(40, 80%, 50%) in CSS?
As HSL: color: hsl(40, 80%, 50%); — As HEX: color: #E6A21A; — As RGB: color: rgb(230, 162, 26); — Tailwind CSS: bg-[hsl(40,80%,50%)] — CSS variable: --color-primary: hsl(40, 80%, 50%);