#FFD700
gold
#FFD700 is a yellow colour. In RGB it is 255 red, 215 green and 0 blue, which converts to a hue of 51 degrees, 100% saturation and 50% lightness. It is one of the named CSS colours, written as gold in stylesheets.
Color values
| HEX | #FFD700 |
|---|---|
| RGB | rgb(255, 215, 0) |
| HSL | hsl(51, 100%, 50%) |
| HSV | hsv(51, 100%, 100%) |
| CMYK | cmyk(0%, 16%, 100%, 0%) |
Contrast and accessibility
Against white the contrast ratio is 1.4:1, and against black it is 14.97:1. WCAG asks for at least 4.5:1 for normal text and 3:1 for large text.
| Background | Ratio | Normal text | Large text |
|---|---|---|---|
| White | 1.4:1 | Fail | Fail |
| Black | 14.97:1 | AAA | AAA |
Tints and shades
Lighter tints move #FFD700 toward white, and darker shades move it toward black.
Tints
Shades
Color harmonies
Complementary
Analogous
Triadic
Split complementary
Code
| CSS | color: #FFD700; |
|---|---|
| CSS rgb() | color: rgb(255 215 0); |
| Tailwind | bg-[#ffd700] |
| SwiftUI | Color(red: 1.000, green: 0.843, blue: 0.000) |
| Android | Color.parseColor("#FFD700") |