HSL(62, 30%, 51%)
Yellow — Yellow color
Adjust Color
Color Information
Color Name
Yellow
Color Family
Yellow
Warm / Cool
🔵 Cool
Temperature
3500K
CSS Class
bg-[hsl(62,30%,51%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(62, 30%, 51%) | color: hsl(62, 30%, 51%) | |
| HEX | #A5A85D | color: #A5A85D | |
| RGB | rgb(165, 168, 93) | color: rgb(165, 168, 93) | |
| CMYK | cmyk(2%, 0%, 45%, 34%) | — | |
| HSV | hsv(62, 45%, 66%) | — | |
| HWB | hwb(62 36% 34%) | color: hwb(62 36% 34%) | |
| OKLCH | oklch(0.7123 0.0982 110.66) | color: oklch(0.7123 0.0982 110.66) | |
| Lab | lab(67.12 -12.29 38.22) | color: lab(67.12 -12.29 38.22) | |
| LCH | lch(67.12 40.15 107.83) | color: lch(67.12 40.15 107.83) |
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)
#A6A66F — rgb(166, 166, 111)
Deuteranopia (Green-blind)
#A6A674 — rgb(166, 166, 116)
Tritanopia (Blue-blind)
#A57D81 — rgb(165, 125, 129)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(62, 30%, 51%);
text
color: hsl(62, 30%, 51%);
border
border: 2px solid hsl(62, 30%, 51%);
gradient light
background: linear-gradient(to right, hsl(62, 30%, 71%), hsl(62, 30%, 51%));
gradient dark
background: linear-gradient(to right, hsl(62, 30%, 51%), hsl(62, 30%, 31%))
hex
background-color: #A5A85D;
tailwind
bg-[hsl(62,30%,51%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(62, 30%, 51%, 0.4);
css variable
--color-primary: hsl(62, 30%, 51%);
Related Colors
Use Cases for Yellow
Frequently Asked Questions
What are all the color codes for HSL(62, 30%, 51%)?
HEX: #A5A85D | RGB: rgb(165, 168, 93) | CMYK: 2%, 0%, 45%, 34% | HSV: 62°, 45%, 66%. Copy any format from the conversion table above.
What colors go well with #A5A85D?
The complementary color is HSL(242, 30%, 51%). 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, 30%, 51%) in CSS?
As HSL: color: hsl(62, 30%, 51%); — As HEX: color: #A5A85D; — As RGB: color: rgb(165, 168, 93); — Tailwind CSS: bg-[hsl(62,30%,51%)] — CSS variable: --color-primary: hsl(62, 30%, 51%);