HSL(56, 40%, 28%)
Yellow — Yellow color
Adjust Color
Color Information
Color Name
Yellow
Color Family
Yellow
Warm / Cool
🔴 Warm
Temperature
2700K
CSS Class
bg-[hsl(56,40%,28%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(56, 40%, 28%) | color: hsl(56, 40%, 28%) | |
| HEX | #64602B | color: #64602B | |
| RGB | rgb(100, 96, 43) | color: rgb(100, 96, 43) | |
| CMYK | cmyk(0%, 4%, 57%, 61%) | — | |
| HSV | hsv(56, 57%, 39%) | — | |
| HWB | hwb(56 17% 61%) | color: hwb(56 17% 61%) | |
| OKLCH | oklch(0.4806 0.0737 104.91) | color: oklch(0.4806 0.0737 104.91) | |
| Lab | lab(40 -6.32 30.42) | color: lab(40 -6.32 30.42) | |
| LCH | lch(40 31.07 101.74) | color: lch(40 31.07 101.74) |
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)
#626238 — rgb(98, 98, 56)
Deuteranopia (Green-blind)
#63633B — rgb(99, 99, 59)
Tritanopia (Blue-blind)
#644244 — rgb(100, 66, 68)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(56, 40%, 28%);
text
color: hsl(56, 40%, 28%);
border
border: 2px solid hsl(56, 40%, 28%);
gradient light
background: linear-gradient(to right, hsl(56, 40%, 48%), hsl(56, 40%, 28%));
gradient dark
background: linear-gradient(to right, hsl(56, 40%, 28%), hsl(56, 40%, 8%))
hex
background-color: #64602B;
tailwind
bg-[hsl(56,40%,28%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(56, 40%, 28%, 0.4);
css variable
--color-primary: hsl(56, 40%, 28%);
Related Colors
Use Cases for Yellow
Frequently Asked Questions
What are all the color codes for HSL(56, 40%, 28%)?
HEX: #64602B | RGB: rgb(100, 96, 43) | CMYK: 0%, 4%, 57%, 61% | HSV: 56°, 57%, 39%. Copy any format from the conversion table above.
What colors go well with #64602B?
The complementary color is HSL(236, 40%, 28%). For a triadic harmony, use hues 56°, 176°, and 296°. For analogous combinations, try hues 26° and 86°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(56, 40%, 28%) in CSS?
As HSL: color: hsl(56, 40%, 28%); — As HEX: color: #64602B; — As RGB: color: rgb(100, 96, 43); — Tailwind CSS: bg-[hsl(56,40%,28%)] — CSS variable: --color-primary: hsl(56, 40%, 28%);