#AF9D27 color
The hex color #AF9D27 is a moderate yellow.
In the RGB color model it is made of 68.6% red, 61.6% green and 15.3% blue (175, 157, 39).
Its hue angle is 52°, with 64% saturation and 42% lightness. For print, the CMYK equivalent is 0% cyan, 10% magenta, 78% yellow and 31% black.
The closest named color is Lucky (#AB9A1C), a difference of 1.2 ΔE, which is barely visible.
Black text is the more readable choice on this background (contrast 7.67:1).
#AF9D27 color codes
| HEX | #AF9D27 | |
|---|---|---|
| RGB | rgb(175, 157, 39) | |
| RGB percent | rgb(68.6%, 61.6%, 15.3%) | |
| HSL | hsl(52, 64%, 42%) | |
| HSV / HSB | hsv(52, 78%, 69%) | |
| CMYK | cmyk(0%, 10%, 78%, 31%) | |
| CIE LAB | lab(64.46, -6, 59.48) | |
| CIE LCH | lch(64.46, 59.78, 95.76) | |
| CIE XYZ | xyz(30.104, 33.376, 6.776) | |
| Decimal | 11509031 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #AF9D27, 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 #AF9D27 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 7.67:1 | Pass | Pass | Pass |
| Sample text | 2.74:1 | Fail | Fail | Fail |
| #AF9D27 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.74:1 | Fail | Fail | Fail |
| Sample text | 7.67: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 #AF9D27 looks to people with the most common types of color vision deficiency.
#ad980bProtanopia
no red cones#b29f30Deuteranopia
no green cones#bd9187Tritanopia
no blue cones#9c9c9cAchromatopsia
no color vision
CSS examples
.background { background-color: #af9d27; }
.text { color: #af9d27; }
.border { border: 2px solid #af9d27; }
.transparent { background-color: rgb(175 157 39 / 50%); }
.gradient { background: linear-gradient(to right, #af9d27, #7daf27); }
Similar colors
#ab9a1cLucky#aa9922Greedy Gecko#aea132Martian#b29700Sunken Gold#b5a642Brass#bea932Hey Pesto#bda928Greenfinch#b3a74bPickled
Closest common color name: Metallic Gold.
Questions
- What color is #AF9D27?
- #AF9D27 is a moderate yellow, closest to the named color Lucky. It belongs to the yellow family of colors.
- What is the RGB value of #AF9D27?
- The RGB value is 175, 157, 39: 175 red, 157 green and 39 blue on a 0 to 255 scale.
- What is the complementary color of #AF9D27?
- The complementary color is #2739AF, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #AF9D27?
- Black text. Black text has a contrast ratio of 7.67:1 and white text 2.74:1. WCAG asks for at least 4.5:1 for normal text.