HSL(54, 12%, 54%)
Grayish Yellow — Yellow color
Adjust Color
Color Information
Color Name
Grayish Yellow
Color Family
Yellow
Warm / Cool
🔴 Warm
Temperature
N/A
CSS Class
bg-[hsl(54,12%,54%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(54, 12%, 54%) | color: hsl(54, 12%, 54%) | |
| HEX | #98957C | color: #98957C | |
| RGB | rgb(152, 149, 124) | color: rgb(152, 149, 124) | |
| CMYK | cmyk(0%, 2%, 18%, 40%) | — | |
| HSV | hsv(54, 18%, 60%) | — | |
| HWB | hwb(54 49% 40%) | color: hwb(54 49% 40%) | |
| OKLCH | oklch(0.6655 0.0358 101.66) | color: oklch(0.6655 0.0358 101.66) | |
| Lab | lab(61.33 -3.28 13.63) | color: lab(61.33 -3.28 13.63) | |
| LCH | lch(61.33 14.02 103.53) | color: lch(61.33 14.02 103.53) |
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)
#979782 — rgb(151, 151, 130)
Deuteranopia (Green-blind)
#979784 — rgb(151, 151, 132)
Tritanopia (Blue-blind)
#988788 — rgb(152, 135, 136)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(54, 12%, 54%);
text
color: hsl(54, 12%, 54%);
border
border: 2px solid hsl(54, 12%, 54%);
gradient light
background: linear-gradient(to right, hsl(54, 12%, 74%), hsl(54, 12%, 54%));
gradient dark
background: linear-gradient(to right, hsl(54, 12%, 54%), hsl(54, 12%, 34%))
hex
background-color: #98957C;
tailwind
bg-[hsl(54,12%,54%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(54, 12%, 54%, 0.4);
css variable
--color-primary: hsl(54, 12%, 54%);
Related Colors
Use Cases for Grayish Yellow
Frequently Asked Questions
What are all the color codes for HSL(54, 12%, 54%)?
HEX: #98957C | RGB: rgb(152, 149, 124) | CMYK: 0%, 2%, 18%, 40% | HSV: 54°, 18%, 60%. Copy any format from the conversion table above.
What colors go well with #98957C?
The complementary color is HSL(234, 12%, 54%). For a triadic harmony, use hues 54°, 174°, and 294°. For analogous combinations, try hues 24° and 84°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(54, 12%, 54%) in CSS?
As HSL: color: hsl(54, 12%, 54%); — As HEX: color: #98957C; — As RGB: color: rgb(152, 149, 124); — Tailwind CSS: bg-[hsl(54,12%,54%)] — CSS variable: --color-primary: hsl(54, 12%, 54%);