#AFA971#AFA971
#AFA971 is a light, moderate yellow. Relative luminance 0.387; OKLCH L 72.6% C 0.075 H 102.9°. Best body text is #000000 at 8.74:1 contrast (WCAG AA passes).
Color values
| HEX | #AFA971 |
|---|---|
| RGB | rgb(175, 169, 113) |
| HSL | hsl(54, 28%, 56%) |
| HSV | hsv(54, 35%, 69%) |
| CMYK | cmyk(0%, 3.4%, 35.4%, 31.4%) |
| CIE-LAB | lab(68.52, -6.45, 29.71) |
| CIE-LCH | lch(68.52, 30.41, 102.25°) |
| OKLab | oklab(72.64% -0.0168 0.0735) |
| OKLCH | oklch(72.64% 0.075 102.9) |
| XYZ | xyz(34.8482, 38.6830, 21.2504) |
| Luminance | 0.3868 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Khaki (survey)
#AAA662
ΔE00 2.83
Sand
#C2B280
ΔE00 5.00
Darkkhaki
#BDB76B
ΔE00 5.32
Stone (survey)
#ADA587
ΔE00 6.99
Putty
#BEAE8A
ΔE00 7.17
Bland
#AFA88B
ΔE00 7.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFA971 #7177AF
analogous
#AF8A71 #AFA971 #96AF71
triadic
#AFA971 #71AFA9 #A971AF
tetradic
#AFA971 #71AF8A #7177AF #AF7196
square
#AFA971 #71AF8A #7177AF #AF7196
split-complementary
#AFA971 #7196AF #8A71AF
monochromatic
#6A653C #918B52 #AFA971 #C5C198 #DBD8BF
Accessibility & contrast
On white
2.40
#AFA971 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.74
#AFA971 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFA971
8.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFA971 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFA971 | 1.00 | 2.40 | 8.74 | 8.74 |
| #FFFFFF | 2.40 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.74 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.74 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B3A56D
Deuteranopia (green-blind)
#B5A973
Tritanopia (blue-blind)
#B8A29B
Achromatopsia (no color)
#A7A7A7
Design tokens & code
CSS
--color: #afa971; /* rgb */ color: rgb(175, 169, 113); /* oklch */ color: oklch(72.6% 0.075 102.9);
Tailwind
colors: {
custom: {
50: '#c8c29a',
500: '#afa971',
950: '#000000',
},
}SCSS
$custom: #afa971; $custom-light: #c8c29a; $custom-dark: #000000;
JSON
{
"hex": "#afa971",
"rgb": {
"r": 175,
"g": 169,
"b": 113
},
"hsl": {
"h": 54.194,
"s": 27.928,
"l": 56.471
},
"oklch": {
"l": 0.72637,
"c": 0.07534,
"h": 102.9
},
"luminance": 0.38682
}Semantic roles & 50–950 ramp
primary
#AFA971
secondary
#B1B4CB
accent
#6DC464
background
#FCFBF9
surface
#F8F7F2
border
#D1D0CC
text
#13120E
muted
#82817E