#AFA500 color
The hex color #AFA500 is a dark, vivid yellow.
In the RGB color model it is made of 68.6% red, 64.7% green and 0% blue (175, 165, 0).
Its hue angle is 57°, with 100% saturation and 34% lightness. For print, the CMYK equivalent is 0% cyan, 6% magenta, 100% yellow and 31% black.
The closest named color is Honey and Thyme (#AAAA00), a difference of 2.7 ΔE, a small difference.
Black text is the more readable choice on this background (contrast 8.2:1).
#AFA500 color codes
| HEX | #AFA500 | |
|---|---|---|
| RGB | rgb(175, 165, 0) | |
| RGB percent | rgb(68.6%, 64.7%, 0%) | |
| HSL | hsl(57, 100%, 34%) | |
| HSV / HSB | hsv(57, 100%, 69%) | |
| CMYK | cmyk(0%, 6%, 100%, 31%) | |
| CIE LAB | lab(66.54, -11.1, 69.22) | |
| CIE LCH | lch(66.54, 70.11, 99.11) | |
| CIE XYZ | xyz(31.136, 36.026, 5.314) | |
| Decimal | 11511040 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #AFA500, based on their position on the color wheel.
Complementary
The color opposite on the color wheel (180°). Strongest contrast.
Analogous
Neighbors 30° either side. Calm, natural combinations.
Split complementary
The two colors next to the complement (150° and 210°).
Triadic
Three colors evenly spaced, 120° apart.
Tetradic (square)
Four colors 90° apart.
Shades, tints and tones
Shades (darker, mixed with black)
Tints (lighter, mixed with white)
Tones (mixed with gray)
Contrast and accessibility
| Text on #AFA500 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 8.2:1 | Pass | Pass | Pass |
| Sample text | 2.56:1 | Fail | Fail | Fail |
| #AFA500 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.56:1 | Fail | Fail | Fail |
| Sample text | 8.2:1 | Pass | Pass | Pass |
WCAG 2 asks for 4.5:1 for normal text (AA), 7:1 for AAA, and 3:1 for large text. Check other pairs.
Color blindness simulation
How #AFA500 looks to people with the most common types of color vision deficiency.
#b59f00Protanopia
no red cones#b8a41bDeuteranopia
no green cones#bd998cTritanopia
no blue cones#a2a2a2Achromatopsia
no color vision
CSS examples
.background { background-color: #afa500; }
.text { color: #afa500; }
.border { border: 2px solid #afa500; }
.transparent { background-color: rgb(175 165 0 / 50%); }
.gradient { background: linear-gradient(to right, #afa500, #62af00); }
Similar colors
#aaaa00Honey and Thyme#a4a404Countryside#bfac05Muddy Yellow#bda928Greenfinch#aea132Martian#ab9a1cLucky#bea932Hey Pesto#aa9922Greedy Gecko
Closest common color name: Metallic Gold.
Questions
- What color is #AFA500?
- #AFA500 is a dark, vivid yellow, closest to the named color Honey and Thyme. It belongs to the yellow family of colors.
- What is the RGB value of #AFA500?
- The RGB value is 175, 165, 0: 175 red, 165 green and 0 blue on a 0 to 255 scale.
- What is the complementary color of #AFA500?
- The complementary color is #000AAF, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #AFA500?
- Black text. Black text has a contrast ratio of 8.2:1 and white text 2.56:1. WCAG asks for at least 4.5:1 for normal text.