HSL(61, 97%, 31%)
Yellow — Yellow color
Adjust Color
Color Information
Color Name
Yellow
Color Family
Yellow
Warm / Cool
🔵 Cool
Temperature
3500K
CSS Class
bg-[hsl(61,97%,31%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(61, 97%, 31%) | color: hsl(61, 97%, 31%) | |
| HEX | #999C02 | color: #999C02 | |
| RGB | rgb(153, 156, 2) | color: rgb(153, 156, 2) | |
| CMYK | cmyk(2%, 0%, 99%, 39%) | — | |
| HSV | hsv(61, 99%, 61%) | — | |
| HWB | hwb(61 1% 39%) | color: hwb(61 1% 39%) | |
| OKLCH | oklch(0.668 0.1465 111.14) | color: oklch(0.668 0.1465 111.14) | |
| Lab | lab(62.13 -16.25 64.87) | color: lab(62.13 -16.25 64.87) | |
| LCH | lch(62.13 66.87 104.06) | color: lch(62.13 66.87 104.06) |
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)
#9A9A27 — rgb(154, 154, 39)
Deuteranopia (Green-blind)
#9A9A30 — rgb(154, 154, 48)
Tritanopia (Blue-blind)
#99454B — rgb(153, 69, 75)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(61, 97%, 31%);
text
color: hsl(61, 97%, 31%);
border
border: 2px solid hsl(61, 97%, 31%);
gradient light
background: linear-gradient(to right, hsl(61, 97%, 51%), hsl(61, 97%, 31%));
gradient dark
background: linear-gradient(to right, hsl(61, 97%, 31%), hsl(61, 97%, 11%))
hex
background-color: #999C02;
tailwind
bg-[hsl(61,97%,31%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(61, 97%, 31%, 0.4);
css variable
--color-primary: hsl(61, 97%, 31%);
Related Colors
Use Cases for Yellow
Frequently Asked Questions
What are all the color codes for HSL(61, 97%, 31%)?
HEX: #999C02 | RGB: rgb(153, 156, 2) | CMYK: 2%, 0%, 99%, 39% | HSV: 61°, 99%, 61%. Copy any format from the conversion table above.
What colors go well with #999C02?
The complementary color is HSL(241, 97%, 31%). For a triadic harmony, use hues 61°, 181°, and 301°. For analogous combinations, try hues 31° and 91°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(61, 97%, 31%) in CSS?
As HSL: color: hsl(61, 97%, 31%); — As HEX: color: #999C02; — As RGB: color: rgb(153, 156, 2); — Tailwind CSS: bg-[hsl(61,97%,31%)] — CSS variable: --color-primary: hsl(61, 97%, 31%);