#AFA842
A medium, moderate yellow closely aligning with Darkkhaki.
About #AFA842
The hex code #AFA842 represents a beautifully specific shade of yellow. Designers often compare it to the standard color Darkkhaki. This translates to an RGB value of rgb(175, 168, 66).
Translating this color to physical media requires the CMYK color model. This specific hue requires a mix of 0% C, 4% M, 62% Y, and 31% K. With a hue angle of 56.1 degrees, it sits comfortably in the yellow spectrum.
Web Content Accessibility Guidelines (WCAG) dictate how we should use this color. To prevent eye strain, #000000 text pairs best with this hex code. Strict adherence to these ratios protects visually impaired users from unreadable interfaces.
Color Space Conversions
HEX#AFA842
RGB175, 168, 66
HSL56.1°, 45.2%, 47.3%
CMYK0%, 4%, 62%, 31%
HSV56.1°, 62.3%, 68.6%
LAB67.7, -10.4, 52.0
XYZ32.7, 37.5, 10.7
Decimal11511874
Color Harmonies
Tints, Shades & Tones
Tints (Adding White)
Shades (Adding Black)
WCAG Contrast Accessibility
2.47:1
Text on #FFFFFF
FAIL
8.50:1
Text on #000000
AAA
2.36:1
Text on #F8FAFC
FAIL
7.23:1
Text on #0F172A
AAA
CSS Implementation
.bg-color {
background-color: #AFA842;
}
.text-color {
color: #AFA842;
}
.border-color {
border: 2px solid #AFA842;
}