#AFA85F
A medium, moderate yellow closely aligning with Darkkhaki.
About #AFA85F
The hex code #AFA85F represents a beautifully specific shade of yellow. Its closest recognized web color is Darkkhaki. To achieve this exact tint on a monitor, you would use an RGB mix of 175, 168, and 95.
Translating this color to physical media requires the CMYK color model. To reproduce this shade on paper, a printer utilizes 0% cyan and 4% magenta inks. With a hue angle of 54.7 degrees, it sits comfortably in the yellow spectrum.
Contrast ratios determine whether this color is safe for typography. Because it is a medium color, it is generally recommended to use #000000 text. Be sure to check our contrast matrix below to see exactly how it performs against common backgrounds.
Color Space Conversions
HEX#AFA85F
RGB175, 168, 95
HSL54.7°, 33.3%, 52.9%
CMYK0%, 4%, 46%, 31%
HSV54.7°, 45.7%, 68.6%
LAB68.0, -7.9, 38.4
XYZ33.7, 37.9, 16.4
Decimal11511903
Color Harmonies
Tints, Shades & Tones
Tints (Adding White)
Shades (Adding Black)
WCAG Contrast Accessibility
2.44:1
Text on #FFFFFF
FAIL
8.59:1
Text on #000000
AAA
2.34:1
Text on #F8FAFC
FAIL
7.30:1
Text on #0F172A
AAA
CSS Implementation
.bg-color {
background-color: #AFA85F;
}
.text-color {
color: #AFA85F;
}
.border-color {
border: 2px solid #AFA85F;
}