HSL(62, 19%, 46%)
Yellow — Yellow color
Adjust Color
Color Information
Color Name
Yellow
Color Family
Yellow
Warm / Cool
🔵 Cool
Temperature
N/A
CSS Class
bg-[hsl(62,19%,46%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(62, 19%, 46%) | color: hsl(62, 19%, 46%) | |
| HEX | #8A8C5F | color: #8A8C5F | |
| RGB | rgb(138, 140, 95) | color: rgb(138, 140, 95) | |
| CMYK | cmyk(1%, 0%, 32%, 45%) | — | |
| HSV | hsv(63, 32%, 55%) | — | |
| HWB | hwb(63 37% 45%) | color: hwb(63 37% 45%) | |
| OKLCH | oklch(0.6269 0.0632 110.24) | color: oklch(0.6269 0.0632 110.24) | |
| Lab | lab(57.06 -8.28 23.85) | color: lab(57.06 -8.28 23.85) | |
| LCH | lch(57.06 25.25 109.15) | color: lch(57.06 25.25 109.15) |
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)
#8B8B6A — rgb(139, 139, 106)
Deuteranopia (Green-blind)
#8B8B6D — rgb(139, 139, 109)
Tritanopia (Blue-blind)
#8A7274 — rgb(138, 114, 116)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(62, 19%, 46%);
text
color: hsl(62, 19%, 46%);
border
border: 2px solid hsl(62, 19%, 46%);
gradient light
background: linear-gradient(to right, hsl(62, 19%, 66%), hsl(62, 19%, 46%));
gradient dark
background: linear-gradient(to right, hsl(62, 19%, 46%), hsl(62, 19%, 26%))
hex
background-color: #8A8C5F;
tailwind
bg-[hsl(62,19%,46%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(62, 19%, 46%, 0.4);
css variable
--color-primary: hsl(62, 19%, 46%);
Related Colors
Use Cases for Yellow
Frequently Asked Questions
What are all the color codes for HSL(62, 19%, 46%)?
HEX: #8A8C5F | RGB: rgb(138, 140, 95) | CMYK: 1%, 0%, 32%, 45% | HSV: 63°, 32%, 55%. Copy any format from the conversion table above.
What colors go well with #8A8C5F?
The complementary color is HSL(242, 19%, 46%). 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, 19%, 46%) in CSS?
As HSL: color: hsl(62, 19%, 46%); — As HEX: color: #8A8C5F; — As RGB: color: rgb(138, 140, 95); — Tailwind CSS: bg-[hsl(62,19%,46%)] — CSS variable: --color-primary: hsl(62, 19%, 46%);