HSL(62, 87%, 60%)
Yellow — Yellow color
Adjust Color
Color Information
Color Name
Yellow
Color Family
Yellow
Warm / Cool
🔵 Cool
Temperature
3500K
CSS Class
bg-[hsl(62,87%,60%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(62, 87%, 60%) | color: hsl(62, 87%, 60%) | |
| HEX | #ECF240 | color: #ECF240 | |
| RGB | rgb(236, 242, 64) | color: rgb(236, 242, 64) | |
| CMYK | cmyk(2%, 0%, 74%, 5%) | — | |
| HSV | hsv(62, 74%, 95%) | — | |
| HWB | hwb(62 25% 5%) | color: hwb(62 25% 5%) | |
| OKLCH | oklch(0.9274 0.1868 111.51) | color: oklch(0.9274 0.1868 111.51) | |
| Lab | lab(92.45 -21.85 79.12) | color: lab(92.45 -21.85 79.12) | |
| LCH | lch(92.45 82.08 105.44) | color: lch(92.45 82.08 105.44) |
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)
#EFEF6B — rgb(239, 239, 107)
Deuteranopia (Green-blind)
#EEEE75 — rgb(238, 238, 117)
Tritanopia (Blue-blind)
#EC8D95 — rgb(236, 141, 149)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(62, 87%, 60%);
text
color: hsl(62, 87%, 60%);
border
border: 2px solid hsl(62, 87%, 60%);
gradient light
background: linear-gradient(to right, hsl(62, 87%, 80%), hsl(62, 87%, 60%));
gradient dark
background: linear-gradient(to right, hsl(62, 87%, 60%), hsl(62, 87%, 40%))
hex
background-color: #ECF240;
tailwind
bg-[hsl(62,87%,60%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(62, 87%, 60%, 0.4);
css variable
--color-primary: hsl(62, 87%, 60%);
Related Colors
Use Cases for Yellow
Frequently Asked Questions
What are all the color codes for HSL(62, 87%, 60%)?
HEX: #ECF240 | RGB: rgb(236, 242, 64) | CMYK: 2%, 0%, 74%, 5% | HSV: 62°, 74%, 95%. Copy any format from the conversion table above.
What colors go well with #ECF240?
The complementary color is HSL(242, 87%, 60%). For a triadic harmony, use hues 62°, 182°, and 302°. For analogous combinations, try hues 32° and 92°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(62, 87%, 60%) in CSS?
As HSL: color: hsl(62, 87%, 60%); — As HEX: color: #ECF240; — As RGB: color: rgb(236, 242, 64); — Tailwind CSS: bg-[hsl(62,87%,60%)] — CSS variable: --color-primary: hsl(62, 87%, 60%);