HSL(62, 50%, 70%)
Yellow — Yellow color
Adjust Color
Color Information
Color Name
Yellow
Color Family
Yellow
Warm / Cool
🔵 Cool
Temperature
3500K
CSS Class
bg-[hsl(62,50%,70%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(62, 50%, 70%) | color: hsl(62, 50%, 70%) | |
| HEX | #D6D98C | color: #D6D98C | |
| RGB | rgb(214, 217, 140) | color: rgb(214, 217, 140) | |
| CMYK | cmyk(1%, 0%, 35%, 15%) | — | |
| HSV | hsv(62, 35%, 85%) | — | |
| HWB | hwb(62 55% 15%) | color: hwb(62 55% 15%) | |
| OKLCH | oklch(0.8654 0.0986 110.2) | color: oklch(0.8654 0.0986 110.2) | |
| Lab | lab(84.9 -12.59 37.63) | color: lab(84.9 -12.59 37.63) | |
| LCH | lch(84.9 39.68 108.5) | color: lch(84.9 39.68 108.5) |
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)
#D7D79F — rgb(215, 215, 159)
Deuteranopia (Green-blind)
#D7D7A3 — rgb(215, 215, 163)
Tritanopia (Blue-blind)
#D6ADB1 — rgb(214, 173, 177)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(62, 50%, 70%);
text
color: hsl(62, 50%, 70%);
border
border: 2px solid hsl(62, 50%, 70%);
gradient light
background: linear-gradient(to right, hsl(62, 50%, 90%), hsl(62, 50%, 70%));
gradient dark
background: linear-gradient(to right, hsl(62, 50%, 70%), hsl(62, 50%, 50%))
hex
background-color: #D6D98C;
tailwind
bg-[hsl(62,50%,70%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(62, 50%, 70%, 0.4);
css variable
--color-primary: hsl(62, 50%, 70%);
Related Colors
Use Cases for Yellow
Frequently Asked Questions
What are all the color codes for HSL(62, 50%, 70%)?
HEX: #D6D98C | RGB: rgb(214, 217, 140) | CMYK: 1%, 0%, 35%, 15% | HSV: 62°, 35%, 85%. Copy any format from the conversion table above.
What colors go well with #D6D98C?
The complementary color is HSL(242, 50%, 70%). 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, 50%, 70%) in CSS?
As HSL: color: hsl(62, 50%, 70%); — As HEX: color: #D6D98C; — As RGB: color: rgb(214, 217, 140); — Tailwind CSS: bg-[hsl(62,50%,70%)] — CSS variable: --color-primary: hsl(62, 50%, 70%);